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

Unified Diff: third_party/WebKit/Source/core/geometry/DOMPointReadOnly.cpp

Issue 2930883002: [geometry] replace m12 with m21 when transform DOMPoint from DOMMatrix. (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « third_party/WebKit/Source/core/geometry/DOMMatrixReadOnly.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/geometry/DOMPointReadOnly.cpp
diff --git a/third_party/WebKit/Source/core/geometry/DOMPointReadOnly.cpp b/third_party/WebKit/Source/core/geometry/DOMPointReadOnly.cpp
index fa25625dc279fad11edf7e8150ea6c63bb80aaa3..c15c6e64a6296b3f87d852d5f3eb2cfb56ca7d29 100644
--- a/third_party/WebKit/Source/core/geometry/DOMPointReadOnly.cpp
+++ b/third_party/WebKit/Source/core/geometry/DOMPointReadOnly.cpp
@@ -42,7 +42,7 @@ DOMPoint* DOMPointReadOnly::matrixTransform(DOMMatrixInit& other,
if (matrix->is2D() && z() == 0 && w() == 1) {
double transformed_x =
- x() * matrix->m11() + y() * matrix->m12() + matrix->m41();
+ x() * matrix->m11() + y() * matrix->m21() + matrix->m41();
double transformed_y =
x() * matrix->m12() + y() * matrix->m22() + matrix->m42();
return DOMPoint::Create(transformed_x, transformed_y, 0, 1);
« no previous file with comments | « third_party/WebKit/Source/core/geometry/DOMMatrixReadOnly.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698