| Index: Source/core/css/parser/CSSParserFastPaths.cpp
|
| diff --git a/Source/core/css/parser/CSSParserFastPaths.cpp b/Source/core/css/parser/CSSParserFastPaths.cpp
|
| index 662adf442761416c3ef1ef6e501d0e78bcfc520f..bdc9854155156dba580090f5e7c1294fd0186fb3 100644
|
| --- a/Source/core/css/parser/CSSParserFastPaths.cpp
|
| +++ b/Source/core/css/parser/CSSParserFastPaths.cpp
|
| @@ -454,13 +454,9 @@ PassRefPtrWillBeRawPtr<CSSValue> CSSParserFastPaths::parseColor(const String& st
|
| parseResult = fastParseColorInternal(color, string.characters8(), string.length(), quirksMode);
|
| else
|
| parseResult = fastParseColorInternal(color, string.characters16(), string.length(), quirksMode);
|
| - if (parseResult)
|
| - return cssValuePool().createColorValue(color);
|
| -
|
| - Color namedColor;
|
| - if (!namedColor.setNamedColor(string))
|
| + if (!parseResult)
|
| return nullptr;
|
| - return cssValuePool().createColorValue(namedColor.rgb());
|
| + return cssValuePool().createColorValue(color);
|
| }
|
|
|
| bool CSSParserFastPaths::isValidKeywordPropertyAndValue(CSSPropertyID propertyId, CSSValueID valueID)
|
|
|