mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:27:46 +00:00
LibWeb: Resolve outline CSS property before paint commands recording
Refactor to resolve paint-only properties before painting, aiming to stop using layout nodes during recording of painting commands. Also adds a test, as we have not had any for outlines yet.
This commit is contained in:
parent
f19b17e089
commit
95d91a37d2
7 changed files with 64 additions and 11 deletions
|
@ -195,6 +195,12 @@ public:
|
|||
void set_transform_origin(CSSPixelPoint transform_origin) { m_transform_origin = transform_origin; }
|
||||
CSSPixelPoint const& transform_origin() const { return m_transform_origin; }
|
||||
|
||||
void set_outline_data(Optional<BordersData> outline_data) { m_outline_data = outline_data; }
|
||||
Optional<BordersData> const& outline_data() const { return m_outline_data; }
|
||||
|
||||
void set_outline_offset(CSSPixels outline_offset) { m_outline_offset = outline_offset; }
|
||||
CSSPixels outline_offset() const { return m_outline_offset; }
|
||||
|
||||
CSSPixelRect compute_absolute_padding_rect_with_css_transform_applied() const;
|
||||
Gfx::AffineTransform compute_combined_css_transform() const;
|
||||
|
||||
|
@ -243,6 +249,9 @@ private:
|
|||
Vector<ShadowData> m_box_shadow_data;
|
||||
Gfx::FloatMatrix4x4 m_transform { Gfx::FloatMatrix4x4::identity() };
|
||||
CSSPixelPoint m_transform_origin;
|
||||
|
||||
Optional<BordersData> m_outline_data;
|
||||
CSSPixels m_outline_offset { 0 };
|
||||
};
|
||||
|
||||
class PaintableWithLines : public PaintableBox {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue