| 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());
|
| }
|
|
|