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 c97e9a71fbd6107e43b3e073b90c33de58b94e86..c9065ee9f36af8e9d9e427b3ae6709e14fa07a83 100644 |
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp |
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp |
@@ -90,23 +90,10 @@ void CSSPropertyParser::addExpandedPropertyForValue(CSSPropertyID property, cons |
addProperty(longhands[i], property, value, important); |
} |
-static bool hasInvalidNumericValues(const CSSParserTokenRange& range) |
-{ |
- for (const CSSParserToken& token : range) { |
- CSSParserTokenType type = token.type(); |
- if ((type == NumberToken || type == DimensionToken || type == PercentageToken) |
- && !token.isValidNumericValue()) |
- return true; |
- } |
- return false; |
-} |
- |
bool CSSPropertyParser::parseValue(CSSPropertyID unresolvedProperty, bool important, |
const CSSParserTokenRange& range, const CSSParserContext& context, |
HeapVector<CSSProperty, 256>& parsedProperties, StyleRule::RuleType ruleType) |
{ |
- if (hasInvalidNumericValues(range)) |
- return false; |
int parsedPropertiesSize = parsedProperties.size(); |
CSSPropertyParser parser(range, context, &parsedProperties); |
@@ -135,8 +122,6 @@ bool CSSPropertyParser::parseValue(CSSPropertyID unresolvedProperty, bool import |
const CSSValue* CSSPropertyParser::parseSingleValue( |
CSSPropertyID property, const CSSParserTokenRange& range, const CSSParserContext& context) |
{ |
- if (hasInvalidNumericValues(range)) |
- return nullptr; |
CSSPropertyParser parser(range, context, nullptr); |
const CSSValue* value = parser.parseSingleValue(property); |
if (!value || !parser.m_range.atEnd()) |