mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb: Delete before_children_paint
and after_children_paint
hooks
These were only used in SVGSVGPaintable to apply scroll frame id, which is already handled by `before_paint()` and `after_paint()` hooks in PaintableBox.
This commit is contained in:
parent
4ddbba64cc
commit
809e465e05
Notes:
github-actions[bot]
2025-07-06 19:45:17 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 809e465e05
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5330
4 changed files with 0 additions and 40 deletions
|
@ -29,22 +29,6 @@ Layout::SVGSVGBox const& SVGSVGPaintable::layout_box() const
|
|||
return static_cast<Layout::SVGSVGBox const&>(layout_node());
|
||||
}
|
||||
|
||||
void SVGSVGPaintable::before_children_paint(PaintContext& context, PaintPhase phase) const
|
||||
{
|
||||
PaintableBox::before_children_paint(context, phase);
|
||||
if (phase != PaintPhase::Foreground)
|
||||
return;
|
||||
context.display_list_recorder().push_scroll_frame_id(scroll_frame_id());
|
||||
}
|
||||
|
||||
void SVGSVGPaintable::after_children_paint(PaintContext& context, PaintPhase phase) const
|
||||
{
|
||||
PaintableBox::after_children_paint(context, phase);
|
||||
if (phase != PaintPhase::Foreground)
|
||||
return;
|
||||
context.display_list_recorder().pop_scroll_frame_id();
|
||||
}
|
||||
|
||||
static Gfx::FloatMatrix4x4 matrix_with_scaled_translation(Gfx::FloatMatrix4x4 matrix, float scale)
|
||||
{
|
||||
auto* m = matrix.elements();
|
||||
|
@ -132,12 +116,10 @@ void SVGSVGPaintable::paint_descendants(PaintContext& context, PaintableBox cons
|
|||
if (phase != PaintPhase::Foreground)
|
||||
return;
|
||||
|
||||
paintable.before_children_paint(context, PaintPhase::Foreground);
|
||||
paintable.for_each_child_of_type<PaintableBox>([&](PaintableBox& child) {
|
||||
paint_svg_box(context, child, phase);
|
||||
return IterationDecision::Continue;
|
||||
});
|
||||
paintable.after_children_paint(context, PaintPhase::Foreground);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue