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

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: add rotateFromVector and rotateAxisAngle 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
Index: Source/core/dom/DOMMatrixReadOnly.cpp
diff --git a/Source/core/dom/DOMMatrixReadOnly.cpp b/Source/core/dom/DOMMatrixReadOnly.cpp
index 40de8340d88080c989cec20dd278657950403d6c..abdb408eef73b0725faa03a55e15a61f60dc7ea9 100644
--- a/Source/core/dom/DOMMatrixReadOnly.cpp
+++ b/Source/core/dom/DOMMatrixReadOnly.cpp
@@ -38,4 +38,19 @@ DOMMatrix* DOMMatrixReadOnly::scaleNonUniform(double sx, double sy, double sz,
return DOMMatrix::create(this)->scaleNonUniformSelf(sx, sy, sz, ox, oy, oz);
}
+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

Powered by Google App Engine
This is Rietveld 408576698