|
@@ -95,11 +95,15 @@ void LayoutNode::paint(PaintContext& context, PaintPhase phase)
|
|
if (!is_visible())
|
|
if (!is_visible())
|
|
return;
|
|
return;
|
|
|
|
|
|
|
|
+ before_children_paint(context, phase);
|
|
|
|
+
|
|
for_each_child([&](auto& child) {
|
|
for_each_child([&](auto& child) {
|
|
if (child.is_box() && downcast<LayoutBox>(child).stacking_context())
|
|
if (child.is_box() && downcast<LayoutBox>(child).stacking_context())
|
|
return;
|
|
return;
|
|
child.paint(context, phase);
|
|
child.paint(context, phase);
|
|
});
|
|
});
|
|
|
|
+
|
|
|
|
+ after_children_paint(context, phase);
|
|
}
|
|
}
|
|
|
|
|
|
HitTestResult LayoutNode::hit_test(const Gfx::IntPoint& position, HitTestType type) const
|
|
HitTestResult LayoutNode::hit_test(const Gfx::IntPoint& position, HitTestType type) const
|