Index: third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp |
diff --git a/third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp b/third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp |
index d52416b1babe4f8fda10f4860f0b77ac22d8d3b0..71d42584226141209d15dabcfcef3a2af1693179 100644 |
--- a/third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp |
+++ b/third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp |
@@ -74,6 +74,26 @@ DOMMatrix* DOMMatrixReadOnly::scaleNonUniform(double sx, double sy, double sz, |
return DOMMatrix::create(this)->scaleNonUniformSelf(sx, sy, sz, ox, oy, oz); |
} |
+DOMMatrix* DOMMatrixReadOnly::flipX() |
+{ |
+ DOMMatrix* flipX = DOMMatrix::create(this); |
+ flipX->setM11(-this->m11()); |
+ flipX->setM12(-this->m12()); |
+ flipX->setM13(-this->m13()); |
+ flipX->setM14(-this->m14()); |
+ return flipX; |
+} |
+ |
+DOMMatrix* DOMMatrixReadOnly::flipY() |
+{ |
+ DOMMatrix* flipY = DOMMatrix::create(this); |
+ flipY->setM21(-this->m21()); |
+ flipY->setM22(-this->m22()); |
+ flipY->setM23(-this->m23()); |
+ flipY->setM24(-this->m24()); |
+ return flipY; |
+} |
+ |
DOMFloat32Array* DOMMatrixReadOnly::toFloat32Array() const |
{ |
float array[] = { |