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

Unified Diff: third_party/WebKit/Source/core/css/properties/CSSPropertyAPIContent.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/CSSPropertyAPIContent.cpp
diff --git a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIContent.cpp b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIContent.cpp
index 401b6250bde3374a62ba3fcf7d9e166f5bbd34ac..b922d5174922a2a66d8da1dc035046d1947868ef 100644
--- a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIContent.cpp
+++ b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIContent.cpp
@@ -72,7 +72,7 @@ CSSValue* consumeCounterContent(CSSParserTokenRange args, bool counters) {
const CSSValue* CSSPropertyAPIContent::parseSingleValue(
CSSParserTokenRange& range,
- const CSSParserContext* context) {
+ const CSSParserContext& context) {
if (CSSPropertyParserHelpers::identMatches<CSSValueNone, CSSValueNormal>(
range.peek().id()))
return CSSPropertyParserHelpers::consumeIdent(range);
@@ -81,7 +81,7 @@ const CSSValue* CSSPropertyAPIContent::parseSingleValue(
do {
CSSValue* parsedValue =
- CSSPropertyParserHelpers::consumeImage(range, context);
+ CSSPropertyParserHelpers::consumeImage(range, &context);
if (!parsedValue) {
parsedValue = CSSPropertyParserHelpers::consumeIdent<
CSSValueOpenQuote, CSSValueCloseQuote, CSSValueNoOpenQuote,
@@ -92,7 +92,7 @@ const CSSValue* CSSPropertyAPIContent::parseSingleValue(
if (!parsedValue) {
if (range.peek().functionId() == CSSValueAttr) {
parsedValue = consumeAttr(
- CSSPropertyParserHelpers::consumeFunction(range), context);
+ CSSPropertyParserHelpers::consumeFunction(range), &context);
} else if (range.peek().functionId() == CSSValueCounter) {
parsedValue = consumeCounterContent(
CSSPropertyParserHelpers::consumeFunction(range), false);

Powered by Google App Engine
This is Rietveld 408576698