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.
This commit is contained in:
Andreas Kling 2021-09-15 14:53:44 +02:00
commit 28fabd4728
Notes: sideshowbarker 2024-07-18 03:56:36 +09:00
6 changed files with 12 additions and 15 deletions

View file

@ -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) {};