summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Painting/SVGPaintable.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-09-13 20:45:38 +0200
committerAndreas Kling <kling@serenityos.org>2022-09-14 00:09:49 +0200
commit63c727a4a3414812aa1df50e700bda713f4039a4 (patch)
tree0275fe98dde75fda86702929ecc59aeb399095ec /Userland/Libraries/LibWeb/Painting/SVGPaintable.cpp
parentf941b7aefe029c034f9bc3046128e0f8e0cf0a80 (diff)
downloadserenity-63c727a4a3414812aa1df50e700bda713f4039a4.zip
LibWeb: Don't clip to containing block when painting abspos descendants
Diffstat (limited to 'Userland/Libraries/LibWeb/Painting/SVGPaintable.cpp')
-rw-r--r--Userland/Libraries/LibWeb/Painting/SVGPaintable.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibWeb/Painting/SVGPaintable.cpp b/Userland/Libraries/LibWeb/Painting/SVGPaintable.cpp
index e1dae92297..84910de306 100644
--- a/Userland/Libraries/LibWeb/Painting/SVGPaintable.cpp
+++ b/Userland/Libraries/LibWeb/Painting/SVGPaintable.cpp
@@ -20,17 +20,17 @@ Layout::SVGBox const& SVGPaintable::layout_box() const
return static_cast<Layout::SVGBox const&>(layout_node());
}
-void SVGPaintable::before_children_paint(PaintContext& context, PaintPhase phase) const
+void SVGPaintable::before_children_paint(PaintContext& context, PaintPhase phase, ShouldClipOverflow should_clip_overflow) const
{
- PaintableBox::before_children_paint(context, phase);
+ PaintableBox::before_children_paint(context, phase, should_clip_overflow);
if (phase != PaintPhase::Foreground)
return;
context.svg_context().save();
}
-void SVGPaintable::after_children_paint(PaintContext& context, PaintPhase phase) const
+void SVGPaintable::after_children_paint(PaintContext& context, PaintPhase phase, ShouldClipOverflow should_clip_overflow) const
{
- PaintableBox::after_children_paint(context, phase);
+ PaintableBox::after_children_paint(context, phase, should_clip_overflow);
if (phase != PaintPhase::Foreground)
return;
context.svg_context().restore();