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

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

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.h
diff --git a/Source/core/dom/DOMMatrixReadOnly.h b/Source/core/dom/DOMMatrixReadOnly.h
index e0460f384fefbeb39f016c3c7c7e6d5bffde74a4..9b9c64b3a2710dd5b658ba19fa2b0367e3b8337c 100644
--- a/Source/core/dom/DOMMatrixReadOnly.h
+++ b/Source/core/dom/DOMMatrixReadOnly.h
@@ -47,6 +47,9 @@ public:
DOMMatrix* scale3d(double scale, double ox = 0, double oy = 0, double oz = 0);
DOMMatrix* scaleNonUniform(double sx, double sy = 1, double sz = 1,
double ox = 0, double oy = 0, double oz = 0);
+ DOMMatrix* rotate(double angle, double ox = 0, double oy = 0);
+ DOMMatrix* rotateFromVector(double x, double y);
+ DOMMatrix* rotateAxisAngle(double x, double y, double z, double angle);
const TransformationMatrix& matrix() const { return m_matrix; }

Powered by Google App Engine
This is Rietveld 408576698