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

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

Issue 2702183002: Incl. custom properties in CSS property UseCounter (Closed)
Patch Set: Update test expectations after rebase Created 3 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/CSSParserImpl.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp b/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp
index 8f4df90830aa4363ae0ac203edac54474b835497..a82c6e54ae458a1fa0d1a073061914984b497909 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp
@@ -948,9 +948,11 @@ void CSSParserImpl::consumeVariableValue(CSSParserTokenRange range,
bool isAnimationTainted) {
if (CSSCustomPropertyDeclaration* value =
CSSVariableParser::parseDeclarationValue(variableName, range,
- isAnimationTainted))
+ isAnimationTainted)) {
m_parsedProperties.push_back(
CSSProperty(CSSPropertyVariable, *value, important));
+ m_context->count(m_context->mode(), CSSPropertyVariable);
+ }
}
void CSSParserImpl::consumeDeclarationValue(CSSParserTokenRange range,

Powered by Google App Engine
This is Rietveld 408576698