LibWeb: Invalidate text-decoration-thickness as paint-only property

Fixes underinvalidation caused by resolving text-decoration-thickness
during layout commit, while this property can be invalidated
independently of layout.
This commit is contained in:
Aliaksandr Kalenik 2025-03-16 18:05:38 +01:00 committed by Alexander Kalenik
commit 2e256d2eac
Notes: github-actions[bot] 2025-03-16 21:26:18 +00:00
4 changed files with 24 additions and 23 deletions

View file

@ -48,6 +48,9 @@ public:
StringView string_view() const;
CSSPixels text_decoration_thickness() const { return m_text_decoration_thickness; }
void set_text_decoration_thickness(CSSPixels thickness) { m_text_decoration_thickness = thickness; }
private:
GC::Ref<Layout::Node const> m_layout_node;
CSSPixelPoint m_offset;
@ -58,6 +61,7 @@ private:
RefPtr<Gfx::GlyphRun> m_glyph_run;
CSS::WritingMode m_writing_mode;
Vector<ShadowData> m_shadows;
CSSPixels m_text_decoration_thickness { 0 };
};
}