| Index: Source/core/css/parser/CSSPropertyParser.cpp
|
| diff --git a/Source/core/css/parser/CSSPropertyParser.cpp b/Source/core/css/parser/CSSPropertyParser.cpp
|
| index 539ad6ed8b536633969c16a67cce948d565f22a6..c85cca3ffc3e5827032ba15e770ef56ec492e699 100644
|
| --- a/Source/core/css/parser/CSSPropertyParser.cpp
|
| +++ b/Source/core/css/parser/CSSPropertyParser.cpp
|
| @@ -2081,8 +2081,7 @@ bool CSSPropertyParser::parsePage(CSSPropertyID propId, bool important)
|
| return false;
|
|
|
| CSSParserValue* value = m_valueList->current();
|
| - if (!value)
|
| - return false;
|
| + ASSERT(value);
|
|
|
| if (value->id == CSSValueAuto) {
|
| addProperty(propId, cssValuePool().createIdentifierValue(value->id), important);
|
| @@ -2103,8 +2102,7 @@ bool CSSPropertyParser::parseSize(CSSPropertyID propId, bool important)
|
| return false;
|
|
|
| CSSParserValue* value = m_valueList->current();
|
| - if (!value)
|
| - return false;
|
| + ASSERT(value);
|
|
|
| RefPtrWillBeRawPtr<CSSValueList> parsedValues = CSSValueList::createSpaceSeparated();
|
|
|
| @@ -4120,8 +4118,7 @@ bool CSSPropertyParser::parseLegacyPosition(CSSPropertyID propId, bool important
|
| // [ legacy && [ left | right | center ]
|
|
|
| CSSParserValue* value = m_valueList->current();
|
| - if (!value)
|
| - return false;
|
| + ASSERT(value);
|
|
|
| if (value->id == CSSValueLegacy) {
|
| value = m_valueList->next();
|
| @@ -4197,8 +4194,7 @@ bool CSSPropertyParser::parseItemPositionOverflowPosition(CSSPropertyID propId,
|
| // <overflow-position> = true | safe
|
|
|
| CSSParserValue* value = m_valueList->current();
|
| - if (!value)
|
| - return false;
|
| + ASSERT(value);
|
|
|
| if (value->id == CSSValueAuto || value->id == CSSValueStretch || isBaselinePositionKeyword(value->id)) {
|
| if (m_valueList->next())
|
| @@ -7983,8 +7979,7 @@ bool CSSPropertyParser::isSystemColor(int id)
|
| bool CSSPropertyParser::parseSVGValue(CSSPropertyID propId, bool important)
|
| {
|
| CSSParserValue* value = m_valueList->current();
|
| - if (!value)
|
| - return false;
|
| + ASSERT(value);
|
|
|
| CSSValueID id = value->id;
|
|
|
| @@ -8273,8 +8268,7 @@ PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parsePaintOrder() const
|
| return nullptr;
|
|
|
| CSSParserValue* value = m_valueList->current();
|
| - if (!value)
|
| - return nullptr;
|
| + ASSERT(value);
|
|
|
| RefPtrWillBeRawPtr<CSSValueList> parsedValues = CSSValueList::createSpaceSeparated();
|
|
|
|
|