mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-17 07:50:04 +00:00
LibWeb: Fix crash from text inside SVG
This commit is contained in:
parent
135daeb8bb
commit
801499f13e
Notes:
github-actions[bot]
2024-11-19 12:42:14 +00:00
Author: https://github.com/Psychpsyo
Commit: 801499f13e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2381
Reviewed-by: https://github.com/kalenikaliaksandr
Reviewed-by: https://github.com/shlyakpavel
2 changed files with 9 additions and 2 deletions
|
@ -100,8 +100,8 @@ void SVGSVGPaintable::paint_descendants(PaintContext& context, PaintableBox cons
|
|||
};
|
||||
|
||||
paintable.before_children_paint(context, PaintPhase::Foreground);
|
||||
paintable.for_each_child([&](auto& child) {
|
||||
paint_svg_box(verify_cast<PaintableBox>(child));
|
||||
paintable.for_each_child_of_type<PaintableBox>([&](PaintableBox& child) {
|
||||
paint_svg_box(child);
|
||||
return IterationDecision::Continue;
|
||||
});
|
||||
paintable.after_children_paint(context, PaintPhase::Foreground);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue