| Index: Source/core/css/parser/BisonCSSParser-in.cpp
|
| diff --git a/Source/core/css/parser/BisonCSSParser-in.cpp b/Source/core/css/parser/BisonCSSParser-in.cpp
|
| index 4060951e5494b4f93e01fca478a98eb673974228..8357d076b065217c415c31d82af77ad156a92736 100644
|
| --- a/Source/core/css/parser/BisonCSSParser-in.cpp
|
| +++ b/Source/core/css/parser/BisonCSSParser-in.cpp
|
| @@ -1025,6 +1025,16 @@ bool BisonCSSParser::parseColor(RGBA32& color, const String& string, bool strict
|
| return true;
|
| }
|
|
|
| +StyleColor BisonCSSParser::colorFromRGBColorString(const String& colorString)
|
| +{
|
| + // FIXME: Rework css parser so it is more SVG aware.
|
| + RGBA32 color;
|
| + if (BisonCSSParser::parseColor(color, colorString.stripWhiteSpace()))
|
| + return StyleColor(color);
|
| + // FIXME: This branch catches the string currentColor, but we should error if we have an illegal color value.
|
| + return StyleColor::currentColor();
|
| +}
|
| +
|
| bool BisonCSSParser::parseColor(const String& string)
|
| {
|
| setupParser("@-internal-decls color:", string, "");
|
|
|