Explorar o código

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

Andreas Kling %!s(int64=3) %!d(string=hai) anos
pai
achega
0bb680bacd
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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() };
     Gfx::AntiAliasingPainter painter { context.painter() };
     auto& svg_context = context.svg_context();
     auto& svg_context = context.svg_context();
 
 
-    auto offset = absolute_position() - effective_offset();
-
+    auto offset = absolute_position();
     painter.translate(offset);
     painter.translate(offset);
 
 
     painter.fill_path(
     painter.fill_path(