Chromium Code Reviews| 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..f3683144f6a396d6af3e7bd12a28a8085aaa3bec 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 (BisonCSSParser::parseColor(color, colorString.stripWhiteSpace())) |
|
davve
2014/07/03 11:41:25
If you're going to keep this method you may drop t
|
| + 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, ""); |