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

Unified Diff: Source/core/css/CSSVariableValue.h

Issue 18311002: Partial implementation of CSSVariablesMap for CSS Variables CSSOM (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased onto ToT, cleaned up includes Created 7 years, 5 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
« no previous file with comments | « Source/core/css/CSSValue.cpp ('k') | Source/core/css/CSSVariablesMap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSVariableValue.h
diff --git a/Source/core/css/CSSVariableValue.h b/Source/core/css/CSSVariableValue.h
index 80702221ae169d431344c91f3eec16f96792398e..5e691e1ec56c306399b5f1a60320ba7f0fe47e8e 100644
--- a/Source/core/css/CSSVariableValue.h
+++ b/Source/core/css/CSSVariableValue.h
@@ -59,6 +59,18 @@ private:
const String m_value;
};
+inline CSSVariableValue* toCSSVariableValue(CSSValue* value)
+{
+ ASSERT_WITH_SECURITY_IMPLICATION(!value || value->isVariableValue());
+ return static_cast<CSSVariableValue*>(value);
+}
+
+inline const CSSVariableValue* toCSSVariableValue(const CSSValue* value)
+{
+ ASSERT_WITH_SECURITY_IMPLICATION(!value || value->isVariableValue());
+ return static_cast<const CSSVariableValue*>(value);
+}
+
}
#endif /* CSSVariableValue_h */
« no previous file with comments | « Source/core/css/CSSValue.cpp ('k') | Source/core/css/CSSVariablesMap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698