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

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

Issue 2365153002: [GeometryInterface] Add rotateAxisAngle*(x,y,z,angle) function. (Closed)
Patch Set: Created 4 years, 3 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 eb1c68e50141bf610385bcbb9685fdaf660e8cb8..e1e932f2a9f4b26c805b20c83200dc2973267a11 100644
--- a/third_party/WebKit/Source/core/dom/DOMMatrix.cpp
+++ b/third_party/WebKit/Source/core/dom/DOMMatrix.cpp
@@ -150,6 +150,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