Browse Source

LibWeb: Remove bogus offset when painting an SVG <path> box

Andreas Kling 3 years ago
parent
commit
0bb680bacd
1 changed files with 1 additions and 2 deletions
  1. 1 2
      Userland/Libraries/LibWeb/Layout/SVGPathBox.cpp

+ 1 - 2
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(