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/CSSPropertyAPIContent.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/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 b922d5174922a2a66d8da1dc035046d1947868ef..401b6250bde3374a62ba3fcf7d9e166f5bbd34ac 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 @@
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 @@
do {
CSSValue* parsedValue =
- CSSPropertyParserHelpers::consumeImage(range, &context);
+ CSSPropertyParserHelpers::consumeImage(range, context);
if (!parsedValue) {
parsedValue = CSSPropertyParserHelpers::consumeIdent<
CSSValueOpenQuote, CSSValueCloseQuote, CSSValueNoOpenQuote,
@@ -92,7 +92,7 @@
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