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

Unified Diff: third_party/WebKit/Source/core/css/properties/CSSPropertyAPIZoom.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/CSSPropertyAPIZoom.cpp
diff --git a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIZoom.cpp b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIZoom.cpp
index dc8a2613ba4d6079f01db1b5ea38684f6060c9c4..cb18fb11fcf074b35697f6316069143ebbdf99d6 100644
--- a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIZoom.cpp
+++ b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIZoom.cpp
@@ -26,17 +26,17 @@ const CSSValue* CSSPropertyAPIZoom::parseSingleValue(
CSSPropertyParserHelpers::consumeNumber(range, ValueRangeNonNegative);
}
}
- if (zoom && context->isUseCounterRecordingEnabled()) {
+ if (zoom) {
if (!(token.id() == CSSValueNormal ||
(token.type() == NumberToken &&
toCSSPrimitiveValue(zoom)->getDoubleValue() == 1) ||
(token.type() == PercentageToken &&
toCSSPrimitiveValue(zoom)->getDoubleValue() == 100)))
- context->useCounter()->count(UseCounter::CSSZoomNotEqualToOne);
+ context->count(UseCounter::CSSZoomNotEqualToOne);
if (token.id() == CSSValueReset)
- context->useCounter()->count(UseCounter::CSSZoomReset);
+ context->count(UseCounter::CSSZoomReset);
if (token.id() == CSSValueDocument)
- context->useCounter()->count(UseCounter::CSSZoomDocument);
+ context->count(UseCounter::CSSZoomDocument);
}
return zoom;
}

Powered by Google App Engine
This is Rietveld 408576698