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

LibWeb: Resolve text-decoration-thickness during layout commit

Refactoring towards stop resolving CSS lengths during paintable
commands recording.
This commit is contained in:
Aliaksandr Kalenik 2024-01-25 19:21:56 +01:00 committed by Andreas Kling
parent d5e3158cfe
commit 0d76a9da17
3 changed files with 22 additions and 10 deletions

View file

@ -24,8 +24,13 @@ public:
virtual DispatchEventOfSameName handle_mouseup(Badge<EventHandler>, CSSPixelPoint, unsigned button, unsigned modifiers) override;
virtual DispatchEventOfSameName handle_mousemove(Badge<EventHandler>, CSSPixelPoint, unsigned button, unsigned modifiers) override;
void set_text_decoration_thickness(CSSPixels thickness) { m_text_decoration_thickness = thickness; }
CSSPixels text_decoration_thickness() const { return m_text_decoration_thickness; }
private:
explicit TextPaintable(Layout::TextNode const&);
CSSPixels m_text_decoration_thickness { 0 };
};
}