mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 12:17: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:
parent
3c8a1ea386
commit
05b1ecf1b1
4 changed files with 114 additions and 44 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue