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

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

Issue 507593002: Implement flip*() methods in DOMMatrixReaOnly. 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
« 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 38f8344d64ce65ea2ec06e2c0f25ec3a532ef43e..9c4508076fe0cdf8bdd866dab9b7ae7def38a67e 100644
--- a/Source/core/dom/DOMMatrixReadOnly.cpp
+++ b/Source/core/dom/DOMMatrixReadOnly.cpp
@@ -92,4 +92,14 @@ DOMMatrix* DOMMatrixReadOnly::skewY(double sy)
return DOMMatrix::create(this)->skewYSelf(sy);
}
+DOMMatrix* DOMMatrixReadOnly::flipX()
+{
+ return scaleNonUniform(-1);
+}
+
+DOMMatrix* DOMMatrixReadOnly::flipY()
+{
+ return scaleNonUniform(1, -1);
+}
+
} // 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