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

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

Issue 450533006: Implement scale*() methods in DOMMatrix. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 2413bec0c51c236204628b06780d3ab345809f61..87d04360e28218cf4334525468ad1bdbb0ad9de5 100644
--- a/Source/core/dom/DOMMatrix.h
+++ b/Source/core/dom/DOMMatrix.h
@@ -38,6 +38,11 @@ public:
void setM43(double value) { m_matrix[3][2] = value; setIs2D(!value); }
void setM44(double value) { m_matrix[3][3] = value; setIs2D(value != 1); }
+ DOMMatrix* scaleSelf(double scale, double ox = 0, double oy = 0);
+ 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);
+
private:
DOMMatrix(double m11, double m12, double m13, double m14,
double m21, double m22, double m23, double m24,

Powered by Google App Engine
This is Rietveld 408576698