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

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
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMMatrix.h ('k') | third_party/WebKit/Source/core/dom/DOMMatrix.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 45e234d6d5aa8bd04ed335578ece92cde0576e7b..3ccf6bf4ae9afd010483318e35ff3265f452c6e0 100644
--- a/third_party/WebKit/Source/core/dom/DOMMatrix.cpp
+++ b/third_party/WebKit/Source/core/dom/DOMMatrix.cpp
@@ -164,6 +164,18 @@ DOMMatrix* DOMMatrix::scaleNonUniformSelf(double sx,
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);
return this;
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMMatrix.h ('k') | third_party/WebKit/Source/core/dom/DOMMatrix.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698