mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-01 15:18:06 +00:00
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:
parent
61c1e4a855
commit
2e256d2eac
Notes:
github-actions[bot]
2025-03-16 21:26:18 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 2e256d2eac
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3968
4 changed files with 24 additions and 23 deletions
|
@ -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 };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue