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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSAtRuleID.cpp

Issue 1645433002: Basic implementation of @apply (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix expted.txt for failing test Created 4 years, 10 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: third_party/WebKit/Source/core/css/parser/CSSAtRuleID.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSAtRuleID.cpp b/third_party/WebKit/Source/core/css/parser/CSSAtRuleID.cpp
index 809d03589f331992c7be362acc5b93be8bdc159d..881986c7d5c1a3578ef17c64cbfee0eade969f7d 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSAtRuleID.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSAtRuleID.cpp
@@ -31,6 +31,8 @@ CSSAtRuleID cssAtRuleID(const CSSParserString& name)
return CSSAtRuleViewport;
if (name.equalIgnoringASCIICase("-webkit-keyframes"))
return CSSAtRuleWebkitKeyframes;
+ if (name.equalIgnoringASCIICase("apply"))
+ return CSSAtRuleApply;
return CSSAtRuleInvalid;
}
@@ -72,6 +74,10 @@ void countAtRule(UseCounter* useCounter, CSSAtRuleID ruleId)
feature = UseCounter::CSSAtRuleWebkitKeyframes;
break;
+ case CSSAtRuleApply:
+ feature = UseCounter::CSSAtRuleApply;
+ break;
+
case CSSAtRuleInvalid:
// fallthrough
default:

Powered by Google App Engine
This is Rietveld 408576698