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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSPropertyParser.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 | « no previous file | third_party/WebKit/Source/core/css/properties/CSSPropertyAPIOffsetPath.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
index 5270cc2c2a50d856c43cacdf37550e50cda6fed6..8849a631ac08931258858c55dd55b4af94805c98 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
@@ -723,8 +723,9 @@ static CSSValue* ConsumeOffsetRotate(CSSParserTokenRange& range,
// offset: <offset-path> <offset-distance> <offset-rotate>
bool CSSPropertyParser::ConsumeOffsetShorthand(bool important) {
+ DCHECK(context_);
const CSSValue* offset_path =
- CSSPropertyOffsetPathUtils::ConsumeOffsetPath(range_, context_);
+ CSSPropertyOffsetPathUtils::ConsumeOffsetPath(range_, *context_);
const CSSValue* offset_distance =
ConsumeLengthOrPercent(range_, context_->Mode(), kValueRangeAll);
const CSSValue* offset_rotate = ConsumeOffsetRotate(range_, *context_);
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/properties/CSSPropertyAPIOffsetPath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698