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

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

Issue 2121913002: [Typed OM] Add CSSValue -> CSSNumberValue conversion (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync Created 4 years, 1 month 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
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSProperties.in ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/cssom/CSSNumberValue.h
diff --git a/third_party/WebKit/Source/core/css/cssom/CSSNumberValue.h b/third_party/WebKit/Source/core/css/cssom/CSSNumberValue.h
index d181d0f370acc00c47abda98919258a78a1bdef4..ee0b3e6d9d076738e61952d930ee8cca50628e2f 100644
--- a/third_party/WebKit/Source/core/css/cssom/CSSNumberValue.h
+++ b/third_party/WebKit/Source/core/css/cssom/CSSNumberValue.h
@@ -37,6 +37,12 @@ class CORE_EXPORT CSSNumberValue final : public CSSStyleValue {
double m_value;
};
+DEFINE_TYPE_CASTS(CSSNumberValue,
+ CSSStyleValue,
+ value,
+ value->type() == CSSStyleValue::NumberType,
+ value.type() == CSSStyleValue::NumberType);
+
} // namespace blink
#endif
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSProperties.in ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698