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 2786153004: Changed CSSParserContext argument from * to & for null safety. (Closed)
Patch Set: Updated syntax where ref is passed as pointer Created 3 years, 9 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 76f80cc9e8b7db4310b96202c2b4b7def454ed9f..cc9baa97d6682fb9cf9c909034b7a26750cf6e16 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 (value && value->isValuePair())
- context->count(UseCounter::CSSOffsetInEffect);
+ context.count(UseCounter::CSSOffsetInEffect);
return value;
}

Powered by Google App Engine
This is Rietveld 408576698