Index: third_party/WebKit/Source/core/css/parser/CSSParserImpl.h |
diff --git a/third_party/WebKit/Source/core/css/parser/CSSParserImpl.h b/third_party/WebKit/Source/core/css/parser/CSSParserImpl.h |
index 882cbb4275e73aeeb36044055b83c4aa3c4f7bef..c3b696d8bb60da938574de9be204bf654e410bd2 100644 |
--- a/third_party/WebKit/Source/core/css/parser/CSSParserImpl.h |
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserImpl.h |
@@ -51,6 +51,7 @@ public: |
AllowNamespaceRules, |
RegularRules, |
KeyframeRules, |
+ ApplyRules, // For @apply inside style rules |
NoRules, // For parsing at-rules inside declaration lists |
}; |
@@ -62,6 +63,8 @@ public: |
static void parseStyleSheet(const String&, const CSSParserContext&, StyleSheetContents*); |
static CSSSelectorList parsePageSelector(CSSParserTokenRange, StyleSheetContents*); |
+ static PassRefPtrWillBeRawPtr<ImmutableStylePropertySet> parseCustomPropertySet(CSSParserTokenRange); |
+ |
static PassOwnPtr<Vector<double>> parseKeyframeKeyList(const String&); |
bool supportsDeclaration(CSSParserTokenRange&); |
@@ -93,6 +96,8 @@ private: |
PassRefPtrWillBeRawPtr<StyleRuleFontFace> consumeFontFaceRule(CSSParserTokenRange prelude, CSSParserTokenRange block); |
PassRefPtrWillBeRawPtr<StyleRuleKeyframes> consumeKeyframesRule(bool webkitPrefixed, CSSParserTokenRange prelude, CSSParserTokenRange block); |
PassRefPtrWillBeRawPtr<StyleRulePage> consumePageRule(CSSParserTokenRange prelude, CSSParserTokenRange block); |
+ // Updates m_parsedProperties |
+ void consumeApplyRule(CSSParserTokenRange prelude); |
PassRefPtrWillBeRawPtr<StyleRuleKeyframe> consumeKeyframeStyleRule(CSSParserTokenRange prelude, CSSParserTokenRange block); |
PassRefPtrWillBeRawPtr<StyleRule> consumeStyleRule(CSSParserTokenRange prelude, CSSParserTokenRange block); |