Index: third_party/WebKit/Source/core/css/resolver/CSSPropertyPriority.h |
diff --git a/third_party/WebKit/Source/core/css/resolver/CSSPropertyPriority.h b/third_party/WebKit/Source/core/css/resolver/CSSPropertyPriority.h |
index 3db693feb1c75419792c596e810d59de578bcfd2..4224ba858da052dd9b6a40566ceb218f92433984 100644 |
--- a/third_party/WebKit/Source/core/css/resolver/CSSPropertyPriority.h |
+++ b/third_party/WebKit/Source/core/css/resolver/CSSPropertyPriority.h |
@@ -15,6 +15,7 @@ namespace blink { |
// decides the pixel value of low priority properties with 'em' units. |
enum CSSPropertyPriority { |
+ ResolveVariables, |
HighPropertyPriority, |
LowPropertyPriority |
}; |
@@ -32,6 +33,19 @@ public: |
}; |
template<> |
+inline CSSPropertyID CSSPropertyPriorityData<ResolveVariables>::first() |
+{ |
+ static_assert(CSSPropertyVariable == firstCSSProperty - 1, "CSSPropertyVariable should be directly before the first CSS property."); |
+ 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"); |