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:
parent
d5e3158cfe
commit
0d76a9da17
3 changed files with 22 additions and 10 deletions
|
@ -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 };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue