Index: third_party/WebKit/Source/core/css/cssom/CSSTransformComponent.cpp |
diff --git a/third_party/WebKit/Source/core/css/cssom/CSSTransformComponent.cpp b/third_party/WebKit/Source/core/css/cssom/CSSTransformComponent.cpp |
index 5466fc8acc12deb4178a9cc542b9bd0e5de415ff..4345d0a870bd2f9db7653853234fa3ea11e357fc 100644 |
--- a/third_party/WebKit/Source/core/css/cssom/CSSTransformComponent.cpp |
+++ b/third_party/WebKit/Source/core/css/cssom/CSSTransformComponent.cpp |
@@ -15,6 +15,9 @@ namespace blink { |
CSSTransformComponent* CSSTransformComponent::fromCSSValue(const CSSValue& value) |
{ |
+ if (!value.isFunctionValue()) |
+ return nullptr; |
+ |
const CSSFunctionValue& functionValue = toCSSFunctionValue(value); |
switch (functionValue.functionType()) { |
case CSSValueMatrix: |