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

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

Issue 2801893003: Revert of Changed CSSParserContext argument from * to & for null safety. (Closed)
Patch Set: Created 3 years, 8 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 cc9baa97d6682fb9cf9c909034b7a26750cf6e16..76f80cc9e8b7db4310b96202c2b4b7def454ed9f 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 @@
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 (value && value->isValuePair())
- context.count(UseCounter::CSSOffsetInEffect);
+ context->count(UseCounter::CSSOffsetInEffect);
return value;
}

Powered by Google App Engine
This is Rietveld 408576698