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

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

Issue 450533006: Implement scale*() methods in DOMMatrix. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: use TransformationMatrix 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 9f8ab94ddeb46860f6f28db5584b2023128c1537..40de8340d88080c989cec20dd278657950403d6c 100644
--- a/Source/core/dom/DOMMatrixReadOnly.cpp
+++ b/Source/core/dom/DOMMatrixReadOnly.cpp
@@ -22,4 +22,20 @@ DOMMatrix* DOMMatrixReadOnly::translate(double tx, double ty, double tz)
return DOMMatrix::create(this)->translateSelf(tx, ty, tz);
}
+DOMMatrix* DOMMatrixReadOnly::scale(double scale, double ox, double oy)
+{
+ return DOMMatrix::create(this)->scaleSelf(scale, ox, oy);
+}
+
+DOMMatrix* DOMMatrixReadOnly::scale3d(double scale, double ox, double oy, double oz)
+{
+ return DOMMatrix::create(this)->scale3dSelf(scale, ox, oy, oz);
+}
+
+DOMMatrix* DOMMatrixReadOnly::scaleNonUniform(double sx, double sy, double sz,
+ double ox, double oy, double oz)
+{
+ return DOMMatrix::create(this)->scaleNonUniformSelf(sx, sy, sz, ox, oy, oz);
+}
+
} // 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