1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 12:47:35 +00:00

LibWeb: Add proper support for text-decoration-line property values

The code handling the rendering of the text-decoration-line got moved
into its own function to reduce clutter.
The CSS property text-decoration-line now supports underline, overline
and line-through.
This commit is contained in:
Tobias Christiansen 2021-07-28 16:44:26 +02:00 committed by Andreas Kling
parent b7ca269b4d
commit 4c17f389db
2 changed files with 38 additions and 2 deletions

View file

@ -63,6 +63,7 @@ private:
virtual void handle_mousemove(Badge<EventHandler>, const Gfx::IntPoint&, unsigned button, unsigned modifiers) override;
void split_into_lines_by_rules(InlineFormattingContext&, LayoutMode, bool do_collapse, bool do_wrap_lines, bool do_wrap_breaks);
void paint_cursor_if_needed(PaintContext&, const LineBoxFragment&) const;
void paint_text_decoration(Gfx::Painter&, LineBoxFragment const&) const;
String m_text_for_rendering;
};