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

Unified Diff: Source/core/dom/DOMMatrix.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/DOMMatrix.h
diff --git a/Source/core/dom/DOMMatrix.h b/Source/core/dom/DOMMatrix.h
index f3b310f769e3c55dea93f942082a8a6f0b985367..8873a7589ebe1c54572a31f7957d177391d3a078 100644
--- a/Source/core/dom/DOMMatrix.h
+++ b/Source/core/dom/DOMMatrix.h
@@ -43,6 +43,9 @@ public:
DOMMatrix* scale3dSelf(double scale, double ox = 0, double oy = 0, double oz = 0);
DOMMatrix* scaleNonUniformSelf(double sx, double sy = 1, double sz = 1,
double ox = 0, double oy = 0, double oz = 0);
+ DOMMatrix* rotateSelf(double angle, double ox = 0, double oy = 0);
+ DOMMatrix* rotateFromVectorSelf(double x, double y);
+ DOMMatrix* rotateAxisAngleSelf(double x, double y, double z, double angle);
private:
DOMMatrix(const TransformationMatrix&, bool is2D = true);

Powered by Google App Engine
This is Rietveld 408576698