Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(506)

Unified Diff: Source/core/css/parser/CSSParser.cpp

Issue 1224223003: Fold CSSParser::colorFromRGBColorString into only user (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/parser/CSSParser.h ('k') | Source/core/svg/SVGAnimatedColor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/parser/CSSParser.cpp
diff --git a/Source/core/css/parser/CSSParser.cpp b/Source/core/css/parser/CSSParser.cpp
index 0c9c2bb2c90614d58c38172e88d69058325b0735..9673f8cd0d82282cec79e8ca8ed79ec40700cd0f 100644
--- a/Source/core/css/parser/CSSParser.cpp
+++ b/Source/core/css/parser/CSSParser.cpp
@@ -136,16 +136,6 @@ bool CSSParser::parseColor(RGBA32& color, const String& string, bool strict)
return true;
}
-StyleColor CSSParser::colorFromRGBColorString(const String& string)
-{
- // FIXME: Rework css parser so it is more SVG aware.
- RGBA32 color;
- if (parseColor(color, string.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 CSSParser::parseSystemColor(RGBA32& color, const String& colorString)
{
CSSParserString cssColor;
« no previous file with comments | « Source/core/css/parser/CSSParser.h ('k') | Source/core/svg/SVGAnimatedColor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698