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

Unified Diff: third_party/WebKit/Source/core/css/properties/CSSPropertyAPIOffsetPosition.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/CSSPropertyAPIOffsetPosition.cpp
diff --git a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIOffsetPosition.cpp b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIOffsetPosition.cpp
index 74f2eb7aba753c5f9e5a477e42c9a9416c4010f2..1fc270d4e419b9acf92ce357155aef2f150c5ff1 100644
--- a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIOffsetPosition.cpp
+++ b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIOffsetPosition.cpp
@@ -13,16 +13,16 @@ namespace blink {
const CSSValue* CSSPropertyAPIOffsetPosition::parseSingleValue(
CSSParserTokenRange& range,
- const CSSParserContext& context) {
+ const CSSParserContext* context) {
CSSValueID id = range.peek().id();
if (id == CSSValueAuto)
return CSSPropertyParserHelpers::consumeIdent(range);
CSSValue* value = CSSPropertyParserHelpers::consumePosition(
- range, context.mode(), CSSPropertyParserHelpers::UnitlessQuirk::Forbid);
+ range, context->mode(), CSSPropertyParserHelpers::UnitlessQuirk::Forbid);
// Count when we receive a valid position other than 'auto'.
- if (context.useCounter() && value && value->isValuePair())
- context.useCounter()->count(UseCounter::CSSOffsetInEffect);
+ if (context->isUseCounterRecordingEnabled() && value && value->isValuePair())
+ context->useCounter()->count(UseCounter::CSSOffsetInEffect);
return value;
}

Powered by Google App Engine
This is Rietveld 408576698