Index: Source/core/css/parser/CSSGrammar.y |
diff --git a/Source/core/css/parser/CSSGrammar.y b/Source/core/css/parser/CSSGrammar.y |
index 7cfe9df28ec4e789d777cb2e6ad964807f029c38..840ca3ee811d4f7ed264d528ea17335071ed4d46 100644 |
--- a/Source/core/css/parser/CSSGrammar.y |
+++ b/Source/core/css/parser/CSSGrammar.y |
@@ -411,9 +411,7 @@ internal_decls: |
internal_value: |
INTERNAL_VALUE_SYM maybe_space expr TOKEN_EOF { |
parser->m_valueList = parser->sinkFloatingValueList($3); |
- int oldParsedProperties = parser->m_parsedProperties.size(); |
- if (!parser->parseValue(parser->m_id, parser->m_important)) |
- parser->rollbackLastProperties(parser->m_parsedProperties.size() - oldParsedProperties); |
+ parser->parseValue(parser->m_id, parser->m_important); |
parser->m_valueList = nullptr; |
} |
; |
@@ -1519,12 +1517,10 @@ declaration: |
bool isPropertyParsed = false; |
if ($1 != CSSPropertyInvalid) { |
parser->m_valueList = parser->sinkFloatingValueList($5); |
- int oldParsedProperties = parser->m_parsedProperties.size(); |
$$ = parser->parseValue($1, $6); |
- if (!$$) { |
- parser->rollbackLastProperties(parser->m_parsedProperties.size() - oldParsedProperties); |
+ if (!$$) |
parser->reportError($4, InvalidPropertyValueCSSError); |
- } else |
+ else |
isPropertyParsed = true; |
parser->m_valueList = nullptr; |
} |