1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:57:44 +00:00

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 :^)
This commit is contained in:
Andreas Kling 2019-11-25 13:17:14 +01:00
parent 3c8a1ea386
commit 05b1ecf1b1
4 changed files with 114 additions and 44 deletions

View file

@ -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;
};