Index: third_party/WebKit/Source/core/css/cssom/RotationTransformComponent.h |
diff --git a/third_party/WebKit/Source/core/css/cssom/RotationTransformComponent.h b/third_party/WebKit/Source/core/css/cssom/RotationTransformComponent.h |
index 2b825ed98d5df356bd1cc0dc0c941727550cdde9..0448e14013e1c7c9a16181033eb29655ad1382af 100644 |
--- a/third_party/WebKit/Source/core/css/cssom/RotationTransformComponent.h |
+++ b/third_party/WebKit/Source/core/css/cssom/RotationTransformComponent.h |
@@ -5,6 +5,7 @@ |
#ifndef RotationTransformComponent_h |
#define RotationTransformComponent_h |
+#include "core/css/cssom/MatrixTransformComponent.h" |
#include "core/css/cssom/TransformComponent.h" |
namespace blink { |
@@ -30,6 +31,12 @@ public: |
TransformComponentType type() const override { return m_is2D ? RotationType : Rotation3DType; } |
+ MatrixTransformComponent* asMatrix() const override |
+ { |
+ return m_is2D ? MatrixTransformComponent::rotate(m_angle) |
+ : MatrixTransformComponent::rotate3d(m_angle, m_x, m_y, m_z); |
+ } |
+ |
PassRefPtrWillBeRawPtr<CSSFunctionValue> toCSSValue() const override; |
private: |