mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibWeb: Fix scroll offset application for SVG root box
Now we use `before_paint()` and `after_paint()` calls for SVG root box to make sure that both clip and scroll are applied. Fixes painting of SVG arrows on www.ubereats.com
This commit is contained in:
parent
1a34676046
commit
e655b77393
Notes:
github-actions[bot]
2025-03-26 20:13:44 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: e655b77393
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4108
Reviewed-by: https://github.com/gmta ✅
3 changed files with 29 additions and 2 deletions
|
@ -103,11 +103,11 @@ void StackingContext::paint_svg(PaintContext& context, PaintableBox const& paint
|
|||
if (phase != PaintPhase::Foreground)
|
||||
return;
|
||||
|
||||
paintable.apply_clip_overflow_rect(context, PaintPhase::Foreground);
|
||||
paintable.before_paint(context, PaintPhase::Foreground);
|
||||
paint_node(paintable, context, PaintPhase::Background);
|
||||
paint_node(paintable, context, PaintPhase::Border);
|
||||
SVGSVGPaintable::paint_svg_box(context, paintable, phase);
|
||||
paintable.clear_clip_overflow_rect(context, PaintPhase::Foreground);
|
||||
paintable.after_paint(context, PaintPhase::Foreground);
|
||||
}
|
||||
|
||||
void StackingContext::paint_descendants(PaintContext& context, Paintable const& paintable, StackingContextPaintPhase phase)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue