Index: third_party/WebKit/Source/core/css/parser/CSSVariableParser.cpp |
diff --git a/third_party/WebKit/Source/core/css/parser/CSSVariableParser.cpp b/third_party/WebKit/Source/core/css/parser/CSSVariableParser.cpp |
index f0255092bbf02a08bd8b66a4ec30268f4092c2b7..a54302eac4ea4fbd6bd498d6e4ff525bb4b30a55 100644 |
--- a/third_party/WebKit/Source/core/css/parser/CSSVariableParser.cpp |
+++ b/third_party/WebKit/Source/core/css/parser/CSSVariableParser.cpp |
@@ -47,6 +47,13 @@ bool classifyBlock(CSSParserTokenRange range, bool& hasReferences, bool isTopLev |
const CSSParserToken& token = range.consume(); |
switch (token.type()) { |
+ case AtKeywordToken: { |
+ // This might have false positives if the @apply doesn't actually match |
+ // the syntax, but that just means we do extra computation work. |
+ if (token.valueEqualsIgnoringASCIICase("apply")) |
+ hasReferences = true; |
+ break; |
+ } |
case DelimiterToken: { |
if (token.delimiter() == '!' && isTopLevelBlock) |
return false; |