Index: Source/core/dom/DOMMatrix.cpp |
diff --git a/Source/core/dom/DOMMatrix.cpp b/Source/core/dom/DOMMatrix.cpp |
index 75cefcb63fe9bf945653424bb609bba356e300b0..d89e0fe05e682e0dabe5a15b3e566c346f13aa93 100644 |
--- a/Source/core/dom/DOMMatrix.cpp |
+++ b/Source/core/dom/DOMMatrix.cpp |
@@ -29,6 +29,26 @@ void DOMMatrix::setIs2D(bool value) |
m_is2D = value; |
} |
+DOMMatrix* DOMMatrix::multiplySelf(DOMMatrix* other) |
+{ |
+ if (!other->is2D()) |
+ m_is2D = false; |
+ |
+ m_matrix.multiply(other->matrix()); |
+ |
+ return this; |
+} |
+ |
+DOMMatrix* DOMMatrix::preMultiplySelf(DOMMatrix* other) |
+{ |
+ if (!other->is2D()) |
+ m_is2D = false; |
+ |
+ m_matrix = other->matrix() * m_matrix; |
+ |
+ return this; |
+} |
+ |
DOMMatrix* DOMMatrix::translateSelf(double tx, double ty, double tz) |
{ |
if (!tx && !ty && !tz) |