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

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

Issue 479863002: Implement rotate*() methods in DOMMatrix. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: use testharnessreport.js Created 6 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
« no previous file with comments | « Source/core/dom/DOMMatrixReadOnly.h ('k') | Source/core/dom/DOMMatrixReadOnly.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DOMMatrixReadOnly.cpp
diff --git a/Source/core/dom/DOMMatrixReadOnly.cpp b/Source/core/dom/DOMMatrixReadOnly.cpp
index 8148ac0cbcc383a7ea3e6fbbc5d6ad46ea24756b..45250069b99bdf370a0e1f30e4554c794222c4fe 100644
--- a/Source/core/dom/DOMMatrixReadOnly.cpp
+++ b/Source/core/dom/DOMMatrixReadOnly.cpp
@@ -67,4 +67,19 @@ PassRefPtr<Float64Array> DOMMatrixReadOnly::toFloat64Array() const
return Float64Array::create(array, 16);
}
+DOMMatrix* DOMMatrixReadOnly::rotate(double angle, double ox, double oy)
+{
+ return DOMMatrix::create(this)->rotateSelf(angle, ox, oy);
+}
+
+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);
+}
+
} // namespace blink
« no previous file with comments | « Source/core/dom/DOMMatrixReadOnly.h ('k') | Source/core/dom/DOMMatrixReadOnly.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698