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

Unified Diff: Source/core/css/resolver/CSSPropertyPriority.h

Issue 1192983003: CSS Custom Properties (Variables) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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: Source/core/css/resolver/CSSPropertyPriority.h
diff --git a/Source/core/css/resolver/CSSPropertyPriority.h b/Source/core/css/resolver/CSSPropertyPriority.h
index 3edca213d50cd3e52a5cf24fa10f37dfbe22fccb..88041910cf36e7cd0b3a7c2dd163e9906116b3e2 100644
--- a/Source/core/css/resolver/CSSPropertyPriority.h
+++ b/Source/core/css/resolver/CSSPropertyPriority.h
@@ -14,6 +14,7 @@ namespace blink {
// decides the pixel value of low priority properties with 'em' units.
enum CSSPropertyPriority {
+ ResolveVariables,
HighPropertyPriority,
LowPropertyPriority
};
@@ -30,6 +31,18 @@ public:
};
template<>
+inline CSSPropertyID CSSPropertyPriorityData<ResolveVariables>::first()
+{
+ return CSSPropertyVariable;
+}
+
+template<>
+inline CSSPropertyID CSSPropertyPriorityData<ResolveVariables>::last()
+{
+ return CSSPropertyVariable;
+}
+
+template<>
inline CSSPropertyID CSSPropertyPriorityData<HighPropertyPriority>::first()
{
static_assert(CSSPropertyColor == firstCSSProperty, "CSSPropertyColor should be the first high priority property");

Powered by Google App Engine
This is Rietveld 408576698