Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Unified Diff: third_party/WebKit/Source/core/css/cssom/CSSStyleValue.h

Issue 2867883003: [CSS Typed OM] Delete obsolete number and length classes from Typed OM (Closed)
Patch Set: rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {}
« no previous file with comments | « third_party/WebKit/Source/core/css/cssom/CSSSkew.idl ('k') | third_party/WebKit/Source/core/css/cssom/CSSTransformComponent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698