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

Unified Diff: third_party/WebKit/Source/core/css/properties/CSSPropertyAPIZoom.cpp

Issue 2616093003: Make CSSParserContext be garbage collected. (Closed)
Patch Set: fix fuzzer compile again Created 3 years, 11 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 f4677874853ffc1249ea00bce862268fa1ff1c2a..dc8a2613ba4d6079f01db1b5ea38684f6060c9c4 100644
--- a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIZoom.cpp
+++ b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIZoom.cpp
@@ -12,7 +12,7 @@ namespace blink {
const CSSValue* CSSPropertyAPIZoom::parseSingleValue(
CSSParserTokenRange& range,
- const CSSParserContext& context) {
+ const CSSParserContext* context) {
const CSSParserToken& token = range.peek();
CSSValue* zoom = nullptr;
if (token.type() == IdentToken) {
@@ -26,17 +26,17 @@ const CSSValue* CSSPropertyAPIZoom::parseSingleValue(
CSSPropertyParserHelpers::consumeNumber(range, ValueRangeNonNegative);
}
}
- if (zoom && context.useCounter()) {
+ if (zoom && context->isUseCounterRecordingEnabled()) {
if (!(token.id() == CSSValueNormal ||
(token.type() == NumberToken &&
toCSSPrimitiveValue(zoom)->getDoubleValue() == 1) ||
(token.type() == PercentageToken &&
toCSSPrimitiveValue(zoom)->getDoubleValue() == 100)))
- context.useCounter()->count(UseCounter::CSSZoomNotEqualToOne);
+ context->useCounter()->count(UseCounter::CSSZoomNotEqualToOne);
if (token.id() == CSSValueReset)
- context.useCounter()->count(UseCounter::CSSZoomReset);
+ context->useCounter()->count(UseCounter::CSSZoomReset);
if (token.id() == CSSValueDocument)
- context.useCounter()->count(UseCounter::CSSZoomDocument);
+ context->useCounter()->count(UseCounter::CSSZoomDocument);
}
return zoom;
}

Powered by Google App Engine
This is Rietveld 408576698