summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Layout/Node.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-09-15 14:53:44 +0200
committerAndreas Kling <kling@serenityos.org>2021-09-15 15:25:47 +0200
commit28fabd4728a01a73118b7e721b30d783a14fee44 (patch)
tree524e4520ce87d4eac685c2d3c55a5df59e1f1614 /Userland/Libraries/LibWeb/Layout/Node.h
parenteac31e21f2bf3c1a4cd5bb4e5d0c19a75fd0b395 (diff)
downloadserenity-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/Node.h')
-rw-r--r--Userland/Libraries/LibWeb/Layout/Node.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/Node.h b/Userland/Libraries/LibWeb/Layout/Node.h
index 0825b7d99c..3fbffce705 100644
--- a/Userland/Libraries/LibWeb/Layout/Node.h
+++ b/Userland/Libraries/LibWeb/Layout/Node.h
@@ -92,7 +92,7 @@ public:
virtual bool handle_mousewheel(Badge<EventHandler>, const Gfx::IntPoint&, unsigned buttons, unsigned modifiers, int wheel_delta);
virtual void before_children_paint(PaintContext&, PaintPhase) {};
- virtual void paint(PaintContext&, PaintPhase);
+ virtual void paint(PaintContext&, PaintPhase) = 0;
virtual void paint_fragment(PaintContext&, const LineBoxFragment&, PaintPhase) const { }
virtual void after_children_paint(PaintContext&, PaintPhase) {};