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

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

Issue 2283363004: GeometryInterace: Add rotate methods. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/DOMMatrixReadOnly.cpp
diff --git a/third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp b/third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp
index 71d42584226141209d15dabcfcef3a2af1693179..6149d9fd060afb0cfe174996ffaa3db75283256c 100644
--- a/third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp
+++ b/third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp
@@ -74,6 +74,31 @@ DOMMatrix* DOMMatrixReadOnly::scaleNonUniform(double sx, double sy, double sz,
return DOMMatrix::create(this)->scaleNonUniformSelf(sx, sy, sz, ox, oy, oz);
}
+DOMMatrix* DOMMatrixReadOnly::rotate(double rotX)
+{
+ return DOMMatrix::create(this)->rotateSelf(rotX);
+}
+
+DOMMatrix* DOMMatrixReadOnly::rotate(double rotX, double rotY)
+{
+ return DOMMatrix::create(this)->rotateSelf(rotX, rotY);
+}
+
+DOMMatrix* DOMMatrixReadOnly::rotate(double rotX, double rotY, double rotZ)
+{
+ return DOMMatrix::create(this)->rotateSelf(rotX, rotY, rotZ);
+}
+
+DOMMatrix* DOMMatrixReadOnly::rotateFromVector(double x, double y)
+{
+ return DOMMatrix::create(this)->rotateFromVectorSelf(x, y);
+}
+
+DOMMatrix* DOMMatrixReadOnly::rotateAxisAngle(double x, double y, double z, double angle)
+{
+ return DOMMatrix::create(this)->rotateAxisAngleSelf(x, y, z, angle);
+}
+
DOMMatrix* DOMMatrixReadOnly::flipX()
{
DOMMatrix* flipX = DOMMatrix::create(this);
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.h ('k') | third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698