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

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

Issue 2867883003: [CSS Typed OM] Delete obsolete number and length classes from Typed OM (Closed)
Patch Set: Update failing LayoutTests 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/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;

Powered by Google App Engine
This is Rietveld 408576698