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

Unified Diff: third_party/WebKit/Source/core/geometry/DOMMatrixReadOnly.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
Index: third_party/WebKit/Source/core/geometry/DOMMatrixReadOnly.cpp
diff --git a/third_party/WebKit/Source/core/geometry/DOMMatrixReadOnly.cpp b/third_party/WebKit/Source/core/geometry/DOMMatrixReadOnly.cpp
index 4290ed2c5d4899bc4e360a8866451371cca14f57..b3657e9ff4c1fd39a176e092648cb933d22a578e 100644
--- a/third_party/WebKit/Source/core/geometry/DOMMatrixReadOnly.cpp
+++ b/third_party/WebKit/Source/core/geometry/DOMMatrixReadOnly.cpp
@@ -276,7 +276,7 @@ DOMMatrix* DOMMatrixReadOnly::inverse() {
DOMPoint* DOMMatrixReadOnly::transformPoint(const DOMPointInit& point) {
if (is2D() && point.z() == 0 && point.w() == 1) {
- double x = point.x() * m11() + point.y() * m12() + m41();
+ double x = point.x() * m11() + point.y() * m21() + m41();
double y = point.x() * m12() + point.y() * m22() + m42();
return DOMPoint::Create(x, y, 0, 1);
}

Powered by Google App Engine
This is Rietveld 408576698