| 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 24182c5f402195026eb3a621dd8bcbf1f570ad60..61cfaa26b948bd9f07b2b8747a4a182c5e557487 100644
|
| --- a/Source/core/css/parser/BisonCSSParser-in.cpp
|
| +++ b/Source/core/css/parser/BisonCSSParser-in.cpp
|
| @@ -1013,6 +1013,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 (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, "");
|
|
|