Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp |
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp |
index 675c646fe1e0f0087c862d0db4dc185920b0613e..1644c76f097358897bd3e760d14d8d760cada080 100644 |
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp |
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp |
@@ -304,6 +304,7 @@ void LayoutSVGRoot::buildLocalToBorderBoxTransform() |
m_localToBorderBoxTransform = svg->viewBoxToViewTransform(contentWidth() / scale, contentHeight() / scale); |
AffineTransform viewToBorderBoxTransform(scale, 0, 0, scale, borderAndPadding.width() + translate.x(), borderAndPadding.height() + translate.y()); |
+ viewToBorderBoxTransform.scale(svg->currentScale()); |
m_localToBorderBoxTransform.preMultiply(viewToBorderBoxTransform); |
} |