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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp

Issue 2798333003: Reland 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/properties/CSSPropertyAPIAlignItems.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 fc9cd344d825c5cbdb9e86fe2b5d34352f04abd6..6c69b7b8f9aaae883549777b95066489caec9323 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
@@ -1836,8 +1836,10 @@
// statement.
const CSSPropertyDescriptor& cssPropertyDesc =
CSSPropertyDescriptor::get(property);
- if (cssPropertyDesc.parseSingleValue)
- return cssPropertyDesc.parseSingleValue(m_range, m_context);
+ if (cssPropertyDesc.parseSingleValue) {
+ DCHECK(m_context);
+ return cssPropertyDesc.parseSingleValue(m_range, *m_context);
+ }
switch (property) {
case CSSPropertyFontFeatureSettings:
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/properties/CSSPropertyAPIAlignItems.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698