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

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

Issue 2444733002: [GeometryInterface] Add rotate*(), rotateFromVector*() function. (Closed)
Patch Set: update test file. 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/DOMMatrixReadOnly.cpp
diff --git a/third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp b/third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp
index 7cf081eecea7c77028b720eef25e99c27d7ed05e..1922a50b0872e2c1c044a280031071651191fa5a 100644
--- a/third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp
+++ b/third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp
@@ -173,6 +173,22 @@ DOMMatrix* DOMMatrixReadOnly::scale3d(double scale,
return DOMMatrix::create(this)->scale3dSelf(scale, 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,
« 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