瀏覽代碼

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

Andreas Kling 3 年之前
父節點
當前提交
0bb680bacd
共有 1 個文件被更改,包括 1 次插入2 次删除
  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(