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

Unified Diff: third_party/WebKit/Source/core/css/properties/CSSPropertyAPIPaintStroke.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/CSSPropertyAPIPaintStroke.cpp
diff --git a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIPaintStroke.cpp b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIPaintStroke.cpp
index 73685dc7ed1e9597f42b7da12beb464892347d8a..9398d202727a482bd83710c49040af2c8a177f8b 100644
--- a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIPaintStroke.cpp
+++ b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIPaintStroke.cpp
@@ -14,17 +14,17 @@ namespace blink {
const CSSValue* CSSPropertyAPIPaintStroke::parseSingleValue(
CSSParserTokenRange& range,
- const CSSParserContext* context) {
+ const CSSParserContext& context) {
if (range.peek().id() == CSSValueNone)
return CSSPropertyParserHelpers::consumeIdent(range);
- CSSURIValue* url = CSSPropertyParserHelpers::consumeUrl(range, context);
+ CSSURIValue* url = CSSPropertyParserHelpers::consumeUrl(range, &context);
if (url) {
CSSValue* parsedValue = nullptr;
if (range.peek().id() == CSSValueNone) {
parsedValue = CSSPropertyParserHelpers::consumeIdent(range);
} else {
parsedValue =
- CSSPropertyParserHelpers::consumeColor(range, context->mode());
+ CSSPropertyParserHelpers::consumeColor(range, context.mode());
}
if (parsedValue) {
CSSValueList* values = CSSValueList::createSpaceSeparated();
@@ -34,7 +34,7 @@ const CSSValue* CSSPropertyAPIPaintStroke::parseSingleValue(
}
return url;
}
- return CSSPropertyParserHelpers::consumeColor(range, context->mode());
+ return CSSPropertyParserHelpers::consumeColor(range, context.mode());
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698