mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 23:58:12 +00:00
LibWeb: Compute the final border-style property before painting
Instead of doing a CSS property lookup for the line style of each border edge during paint, we now cache the final CSS::LineStyle to use in the Layout::BorderData.
This commit is contained in:
parent
88ca932fac
commit
2cbbab8f73
7 changed files with 82 additions and 50 deletions
|
@ -98,7 +98,7 @@ private:
|
|||
Bottom,
|
||||
Left,
|
||||
};
|
||||
void paint_border(PaintContext&, Edge, const Gfx::FloatRect&, CSS::PropertyID style_property_id, const BorderData&);
|
||||
void paint_border(PaintContext&, Edge, const Gfx::FloatRect&, const BorderData&);
|
||||
|
||||
Gfx::FloatPoint m_offset;
|
||||
Gfx::FloatSize m_size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue