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

Unified Diff: third_party/WebKit/Source/platform/transforms/Matrix3DTransformOperation.cpp

Issue 2482753002: Fix matrix3d transform under page zoom (Closed)
Patch Set: Add a comment for zoom Created 4 years, 1 month 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/platform/transforms/Matrix3DTransformOperation.cpp
diff --git a/third_party/WebKit/Source/platform/transforms/Matrix3DTransformOperation.cpp b/third_party/WebKit/Source/platform/transforms/Matrix3DTransformOperation.cpp
index fb1149f570c4f9b42c410147bf07fc913de7e59f..bc5e312db0e85eaa8494c1ff76c228f83038630e 100644
--- a/third_party/WebKit/Source/platform/transforms/Matrix3DTransformOperation.cpp
+++ b/third_party/WebKit/Source/platform/transforms/Matrix3DTransformOperation.cpp
@@ -54,8 +54,7 @@ PassRefPtr<TransformOperation> Matrix3DTransformOperation::blend(
PassRefPtr<TransformOperation> Matrix3DTransformOperation::zoom(double factor) {
TransformationMatrix result = m_matrix;
- result.setM41(result.m41() * factor);
- result.setM42(result.m42() * factor);
+ result.zoom(factor);
return create(result);
}

Powered by Google App Engine
This is Rietveld 408576698