summaryrefslogtreecommitdiff
path: root/Libraries/LibHTML/Layout/LayoutBox.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-11-25 13:17:14 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-11-25 13:17:14 +0100
commit05b1ecf1b151889ea44796eb45bfef25714a4973 (patch)
tree0dc230545069b5bd90ea77dd06a7a7b674485810 /Libraries/LibHTML/Layout/LayoutBox.h
parent3c8a1ea386fd8b4b2e2419047adc2a543fb28619 (diff)
downloadserenity-05b1ecf1b151889ea44796eb45bfef25714a4973.zip
LibHTML: Draw each CSS border edge separately with their own style
The borders still look very wrong with any border-width other than 1, but at least we can see that they have the right color, and end up in mostly the right place :^)
Diffstat (limited to 'Libraries/LibHTML/Layout/LayoutBox.h')
-rw-r--r--Libraries/LibHTML/Layout/LayoutBox.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Libraries/LibHTML/Layout/LayoutBox.h b/Libraries/LibHTML/Layout/LayoutBox.h
index f4d0a8ecc4..7183d3197d 100644
--- a/Libraries/LibHTML/Layout/LayoutBox.h
+++ b/Libraries/LibHTML/Layout/LayoutBox.h
@@ -32,6 +32,14 @@ protected:
private:
virtual bool is_box() const override { return true; }
+ enum class Edge {
+ Top,
+ Right,
+ Bottom,
+ Left,
+ };
+ void paint_border(RenderingContext&, Edge, const Rect&, CSS::PropertyID style_property_id, CSS::PropertyID color_property_id, CSS::PropertyID width_property_id);
+
FloatRect m_rect;
};