| Index: third_party/WebKit/Source/core/css/cssom/PerspectiveTransformComponent.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/cssom/PerspectiveTransformComponent.cpp b/third_party/WebKit/Source/core/css/cssom/PerspectiveTransformComponent.cpp
|
| index 56e633860af5d54c461eea46d1cb7d5239065dba..f82677915bcdeaaa7de374495cdbc38a0f2e2e70 100644
|
| --- a/third_party/WebKit/Source/core/css/cssom/PerspectiveTransformComponent.cpp
|
| +++ b/third_party/WebKit/Source/core/css/cssom/PerspectiveTransformComponent.cpp
|
| @@ -5,6 +5,7 @@
|
| #include "core/css/cssom/PerspectiveTransformComponent.h"
|
|
|
| #include "bindings/core/v8/ExceptionState.h"
|
| +#include "core/css/cssom/MatrixTransformComponent.h"
|
|
|
| namespace blink {
|
|
|
| @@ -17,6 +18,14 @@ PerspectiveTransformComponent* PerspectiveTransformComponent::create(const Lengt
|
| return new PerspectiveTransformComponent(length);
|
| }
|
|
|
| +MatrixTransformComponent* PerspectiveTransformComponent::asMatrix(ExceptionState& exceptionState) const
|
| +{
|
| + double lengthPx = m_length->computeLengthPx(exceptionState);
|
| + if (exceptionState.hadException())
|
| + return nullptr;
|
| + return MatrixTransformComponent::perspective(lengthPx);
|
| +}
|
| +
|
| PassRefPtrWillBeRawPtr<CSSFunctionValue> PerspectiveTransformComponent::toCSSValue() const
|
| {
|
| RefPtrWillBeRawPtr<CSSFunctionValue> result = CSSFunctionValue::create(CSSValuePerspective);
|
|
|