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

Unified Diff: third_party/WebKit/Source/core/dom/DOMMatrix.cpp

Issue 2365153002: [GeometryInterface] Add rotateAxisAngle*(x,y,z,angle) function. (Closed)
Patch Set: update test Created 4 years, 2 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/dom/DOMMatrix.cpp
diff --git a/third_party/WebKit/Source/core/dom/DOMMatrix.cpp b/third_party/WebKit/Source/core/dom/DOMMatrix.cpp
index 73b06db27656b1b7df481c31cff78eef31af37ca..89f117301bd3dc3aafabe0953cf3c968049dcc9a 100644
--- a/third_party/WebKit/Source/core/dom/DOMMatrix.cpp
+++ b/third_party/WebKit/Source/core/dom/DOMMatrix.cpp
@@ -159,6 +159,16 @@ DOMMatrix* DOMMatrix::scaleNonUniformSelf(double sx, double sy, double sz,
return this;
}
+DOMMatrix* DOMMatrix::rotateAxisAngleSelf(double x, double y, double z, double angle)
+{
+ m_matrix->rotate3d(x, y, z, angle);
+
+ if (x != 0 || y != 0)
+ m_is2D = false;
+
+ return this;
+}
+
DOMMatrix* DOMMatrix::skewXSelf(double sx)
{
m_matrix->skewX(sx);

Powered by Google App Engine
This is Rietveld 408576698