Index: third_party/WebKit/Source/core/css/cssom/CSSTransformComponent.h |
diff --git a/third_party/WebKit/Source/core/css/cssom/CSSTransformComponent.h b/third_party/WebKit/Source/core/css/cssom/CSSTransformComponent.h |
index 338ad76f1b43d4f3e953b45b736f56ac95502946..cf17f9e411b33983288c568b2d32f229ee166721 100644 |
--- a/third_party/WebKit/Source/core/css/cssom/CSSTransformComponent.h |
+++ b/third_party/WebKit/Source/core/css/cssom/CSSTransformComponent.h |
@@ -50,7 +50,12 @@ class CORE_EXPORT CSSTransformComponent |
bool is2D() const { return Is2DComponentType(GetType()); } |
- String cssText() const { return ToCSSValue()->CssText(); } |
+ virtual String cssText() const { |
+ const CSSValue* result = ToCSSValue(); |
+ // TODO(meade): Remove this once all the number and length types are |
+ // rewritten. |
+ return result ? result->CssText() : ""; |
+ } |
virtual CSSFunctionValue* ToCSSValue() const = 0; |
virtual CSSMatrixComponent* asMatrix() const = 0; |