Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(545)

Unified Diff: third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.cpp

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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));
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGLengthTearOff.cpp ('k') | third_party/WebKit/Source/core/svg/SVGStringList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698