Index: third_party/WebKit/Source/core/css/cssom/MatrixTransformComponent.cpp |
diff --git a/third_party/WebKit/Source/core/css/cssom/MatrixTransformComponent.cpp b/third_party/WebKit/Source/core/css/cssom/MatrixTransformComponent.cpp |
index 69a95d99548bca899d09bf9121718e1e5e93f46b..4c76200f3b86e5d1e7dad04b755e342309bf033b 100644 |
--- a/third_party/WebKit/Source/core/css/cssom/MatrixTransformComponent.cpp |
+++ b/third_party/WebKit/Source/core/css/cssom/MatrixTransformComponent.cpp |
@@ -98,4 +98,15 @@ MatrixTransformComponent* MatrixTransformComponent::translate3d(double x, double |
return new MatrixTransformComponent(matrix.release(), Translation3DType); |
} |
+// TODO: implement multiply with case statement with TransformComponent::type() |
+MatrixTransformComponent* MatrixTransformComponent::multiplySelf(const MatrixTransformComponent* other) |
+{ |
+ if (!other->is2DComponent()) |
+ m_is2D = false; |
+ |
+ *m_matrix *= other->matrix(); |
+ |
+ return this; |
+} |
+ |
} // namespace blink |