mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:47:34 +00:00
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:
parent
eac31e21f2
commit
28fabd4728
6 changed files with 12 additions and 15 deletions
|
@ -83,20 +83,6 @@ bool Node::establishes_stacking_context() const
|
|||
return false;
|
||||
}
|
||||
|
||||
void Node::paint(PaintContext& context, PaintPhase phase)
|
||||
{
|
||||
if (!is_visible())
|
||||
return;
|
||||
|
||||
before_children_paint(context, phase);
|
||||
|
||||
for_each_child_in_paint_order([&](auto& child) {
|
||||
child.paint(context, phase);
|
||||
});
|
||||
|
||||
after_children_paint(context, phase);
|
||||
}
|
||||
|
||||
HitTestResult Node::hit_test(const Gfx::IntPoint& position, HitTestType type) const
|
||||
{
|
||||
HitTestResult result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue