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