From 0bb680bacd1f7490ed63fe5a6de34f7b42664fcf Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 18 Sep 2021 00:34:54 +0200 Subject: [PATCH] LibWeb: Remove bogus offset when painting an SVG box --- Userland/Libraries/LibWeb/Layout/SVGPathBox.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Userland/Libraries/LibWeb/Layout/SVGPathBox.cpp b/Userland/Libraries/LibWeb/Layout/SVGPathBox.cpp index 9d4b2e9462..bb7d76da9d 100644 --- a/Userland/Libraries/LibWeb/Layout/SVGPathBox.cpp +++ b/Userland/Libraries/LibWeb/Layout/SVGPathBox.cpp @@ -39,8 +39,7 @@ void SVGPathBox::paint(PaintContext& context, PaintPhase phase) Gfx::AntiAliasingPainter painter { context.painter() }; auto& svg_context = context.svg_context(); - auto offset = absolute_position() - effective_offset(); - + auto offset = absolute_position(); painter.translate(offset); painter.fill_path(