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

Unified Diff: third_party/WebKit/Source/core/css/properties/CSSPropertyOffsetPathUtils.cpp

Issue 2918283002: Added null safety to CSSParserContext args in CSSPropertyOffsetPathUtils (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « third_party/WebKit/Source/core/css/properties/CSSPropertyOffsetPathUtils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/properties/CSSPropertyOffsetPathUtils.cpp
diff --git a/third_party/WebKit/Source/core/css/properties/CSSPropertyOffsetPathUtils.cpp b/third_party/WebKit/Source/core/css/properties/CSSPropertyOffsetPathUtils.cpp
index 9bc9d5023623268928bc3aa0dd437810a2b92e89..ca5bb7e598207d889dda6c295bdaf074683986d7 100644
--- a/third_party/WebKit/Source/core/css/properties/CSSPropertyOffsetPathUtils.cpp
+++ b/third_party/WebKit/Source/core/css/properties/CSSPropertyOffsetPathUtils.cpp
@@ -45,7 +45,7 @@ CSSValue* ConsumePath(CSSParserTokenRange& range) {
}
CSSValue* ConsumeRay(CSSParserTokenRange& range,
- const CSSParserContext* context) {
+ const CSSParserContext& context) {
DCHECK_EQ(range.Peek().FunctionId(), CSSValueRay);
CSSParserTokenRange function_range = range;
CSSParserTokenRange function_args =
@@ -57,7 +57,7 @@ CSSValue* ConsumeRay(CSSParserTokenRange& range,
while (!function_args.AtEnd()) {
if (!angle) {
angle = CSSPropertyParserHelpers::ConsumeAngle(
- function_args, *context, WTF::Optional<UseCounter::Feature>());
+ function_args, context, WTF::Optional<UseCounter::Feature>());
if (angle)
continue;
}
@@ -86,7 +86,7 @@ CSSValue* ConsumeRay(CSSParserTokenRange& range,
CSSValue* CSSPropertyOffsetPathUtils::ConsumeOffsetPath(
CSSParserTokenRange& range,
- const CSSParserContext* context) {
+ const CSSParserContext& context) {
CSSValue* value = nullptr;
if (RuntimeEnabledFeatures::cssOffsetPathRayEnabled() &&
range.Peek().FunctionId() == CSSValueRay)
@@ -96,7 +96,7 @@ CSSValue* CSSPropertyOffsetPathUtils::ConsumeOffsetPath(
// Count when we receive a valid path other than 'none'.
if (value && !value->IsIdentifierValue())
- context->Count(UseCounter::kCSSOffsetInEffect);
+ context.Count(UseCounter::kCSSOffsetInEffect);
return value;
}
« no previous file with comments | « third_party/WebKit/Source/core/css/properties/CSSPropertyOffsetPathUtils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698