Index: third_party/WebKit/Source/core/css/cssom/CSSStyleValue.h |
diff --git a/third_party/WebKit/Source/core/css/cssom/CSSStyleValue.h b/third_party/WebKit/Source/core/css/cssom/CSSStyleValue.h |
index 7d8923d8959e0c5d505690c3e02d18b76856fa48..b97ab66accb313afda0cdacc12d9f575a977de7b 100644 |
--- a/third_party/WebKit/Source/core/css/cssom/CSSStyleValue.h |
+++ b/third_party/WebKit/Source/core/css/cssom/CSSStyleValue.h |
@@ -54,7 +54,12 @@ class CORE_EXPORT CSSStyleValue |
virtual const CSSValue* ToCSSValueWithProperty(CSSPropertyID) const { |
return ToCSSValue(); |
} |
- virtual 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() : ""; |
+ } |
DEFINE_INLINE_VIRTUAL_TRACE() {} |