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

Unified Diff: third_party/WebKit/Source/core/css/properties/CSSPropertyAPICursor.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/properties/CSSPropertyAPICursor.cpp
diff --git a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPICursor.cpp b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPICursor.cpp
index 918f758b255adc57d60047b7d923104c8459b74c..dc663be345acb62f4d01863b947722e2e52fcac8 100644
--- a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPICursor.cpp
+++ b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPICursor.cpp
@@ -42,11 +42,11 @@ const CSSValue* CSSPropertyAPICursor::parseSingleValue(
}
CSSValueID id = range.peek().id();
- if (!range.atEnd() && context->isUseCounterRecordingEnabled()) {
+ if (!range.atEnd()) {
if (id == CSSValueWebkitZoomIn)
- context->useCounter()->count(UseCounter::PrefixedCursorZoomIn);
+ context->count(UseCounter::PrefixedCursorZoomIn);
else if (id == CSSValueWebkitZoomOut)
- context->useCounter()->count(UseCounter::PrefixedCursorZoomOut);
+ context->count(UseCounter::PrefixedCursorZoomOut);
}
CSSValue* cursorType = nullptr;
if (id == CSSValueHand) {

Powered by Google App Engine
This is Rietveld 408576698