diff options
author | Andreas Kling <kling@serenityos.org> | 2021-09-15 14:53:44 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-15 15:25:47 +0200 |
commit | 28fabd4728a01a73118b7e721b30d783a14fee44 (patch) | |
tree | 524e4520ce87d4eac685c2d3c55a5df59e1f1614 /Userland/Libraries/LibWeb/Layout/TextNode.h | |
parent | eac31e21f2bf3c1a4cd5bb4e5d0c19a75fd0b395 (diff) | |
download | serenity-28fabd4728a01a73118b7e721b30d783a14fee44.zip |
LibWeb: Make Layout::Node::paint() pure virtual
In the past, the base class implementation of this was used to descend
into subtrees and paint children. That is now taken care of by
StackingContext::paint_descendants() instead, and nothing used this.
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/TextNode.h')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/TextNode.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/TextNode.h b/Userland/Libraries/LibWeb/Layout/TextNode.h index 86bdb554b7..fe561fba58 100644 --- a/Userland/Libraries/LibWeb/Layout/TextNode.h +++ b/Userland/Libraries/LibWeb/Layout/TextNode.h @@ -63,6 +63,7 @@ private: void split_into_lines_by_rules(InlineFormattingContext&, LayoutMode, bool do_collapse, bool do_wrap_lines, bool do_respect_linebreaks); void paint_cursor_if_needed(PaintContext&, const LineBoxFragment&) const; void paint_text_decoration(Gfx::Painter&, LineBoxFragment const&) const; + virtual void paint(PaintContext&, PaintPhase) override; String m_text_for_rendering; }; |