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

Unified Diff: third_party/WebKit/Source/core/css/properties/CSSPropertyAPIBorderRadius.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/CSSPropertyAPIBorderRadius.cpp
diff --git a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIBorderRadius.cpp b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIBorderRadius.cpp
index 151576064674bc3e9a3879b1d511ad811a68ced7..31d4fad577c328528737994abcfb64c875ddcf67 100644
--- a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIBorderRadius.cpp
+++ b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIBorderRadius.cpp
@@ -12,13 +12,13 @@ namespace blink {
const CSSValue* CSSPropertyAPIBorderRadius::parseSingleValue(
CSSParserTokenRange& range,
- const CSSParserContext* context) {
+ const CSSParserContext& context) {
CSSValue* parsedValue1 = CSSPropertyParserHelpers::consumeLengthOrPercent(
- range, context->mode(), ValueRangeNonNegative);
+ range, context.mode(), ValueRangeNonNegative);
if (!parsedValue1)
return nullptr;
CSSValue* parsedValue2 = CSSPropertyParserHelpers::consumeLengthOrPercent(
- range, context->mode(), ValueRangeNonNegative);
+ range, context.mode(), ValueRangeNonNegative);
if (!parsedValue2)
parsedValue2 = parsedValue1;
return CSSValuePair::create(parsedValue1, parsedValue2,

Powered by Google App Engine
This is Rietveld 408576698