Index: third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp |
diff --git a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp |
index 65fa062fec1928cf21f29f08e7921510a16f5077..d0860a4a188193eaaaebbc0685d0f58a21805700 100644 |
--- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp |
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp |
@@ -263,6 +263,11 @@ void PaintPropertyTreeBuilder::updateSvgLocalToBorderBoxTransform(const LayoutOb |
return; |
AffineTransform transformToBorderBox = SVGRootPainter(toLayoutSVGRoot(object)).transformToPixelSnappedBorderBox(context.paintOffset); |
+ |
+ // The paint offset is included in |transformToBorderBox| so SVG does not need to handle paint |
+ // offset internally. |
+ context.paintOffset = LayoutPoint(); |
+ |
if (transformToBorderBox.isIdentity()) |
return; |