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

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

Issue 2671173002: Change CSSParserContext to have a Document handle (vs UseCounter). (Closed)
Patch Set: fix todo style 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/CSSSelectorParser.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp b/third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp
index 6de81c9678ca37942f584890d5f617da8a48b3d8..9143aa370564f0cbaa769690672efba15a4f053d 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp
@@ -808,7 +808,7 @@ CSSSelectorParser::splitCompoundAtImplicitShadowCrossingCombinator(
void CSSSelectorParser::recordUsageAndDeprecations(
const CSSSelectorList& selectorList) {
- if (!m_context->useCounter())
+ if (!m_context->isUseCounterRecordingEnabled())
return;
for (const CSSSelector* selector = selectorList.first(); selector;
@@ -904,11 +904,11 @@ void CSSSelectorParser::recordUsageAndDeprecations(
Deprecation::countDeprecation(*m_styleSheet->anyOwnerDocument(),
feature);
} else {
- m_context->useCounter()->count(feature);
+ m_context->count(feature);
}
}
if (current->relation() == CSSSelector::IndirectAdjacent)
- m_context->useCounter()->count(UseCounter::CSSSelectorIndirectAdjacent);
+ m_context->count(UseCounter::CSSSelectorIndirectAdjacent);
if (current->selectorList())
recordUsageAndDeprecations(*current->selectorList());
}

Powered by Google App Engine
This is Rietveld 408576698