Index: third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.cpp |
diff --git a/third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.cpp b/third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.cpp |
index 72e9617302dc4cd1227aa8423a2354baead22e80..44f809fd896e0e1286d046a80feaecaac01f71cd 100644 |
--- a/third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.cpp |
+++ b/third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.cpp |
@@ -336,11 +336,11 @@ AffineTransform SVGPreserveAspectRatio::getCTM(float logicalX, |
2, |
-extendedLogicalY); |
else |
- transform.translate( |
- -extendedLogicalX - (extendedLogicalWidth - |
+ transform.translate(-extendedLogicalX - |
+ (extendedLogicalWidth - |
extendedPhysicalWidth * extendedLogicalHeight / |
extendedPhysicalHeight), |
- -extendedLogicalY); |
+ -extendedLogicalY); |
return transform; |
} |
@@ -362,9 +362,9 @@ AffineTransform SVGPreserveAspectRatio::getCTM(float logicalX, |
extendedPhysicalWidth) / |
2); |
else |
- transform.translate( |
- -extendedLogicalX, |
- -extendedLogicalY - (extendedLogicalHeight - |
+ transform.translate(-extendedLogicalX, |
+ -extendedLogicalY - |
+ (extendedLogicalHeight - |
extendedPhysicalHeight * extendedLogicalWidth / |
extendedPhysicalWidth)); |