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

Unified Diff: Source/core/css/CSSParser-in.cpp

Issue 20061003: Move isValid/isCurrentColor from Color to StyleColor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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
Index: Source/core/css/CSSParser-in.cpp
diff --git a/Source/core/css/CSSParser-in.cpp b/Source/core/css/CSSParser-in.cpp
index ef0b3ff3c184acd4d55d8c2edec0638eb0277300..e16b170be9b0488f62d9197e279a72887a4460a3 100644
--- a/Source/core/css/CSSParser-in.cpp
+++ b/Source/core/css/CSSParser-in.cpp
@@ -5872,10 +5872,10 @@ bool CSSParser::fastParseColor(RGBA32& rgb, const StringType& name, bool strict)
return true;
// Try named colors.
- Color tc;
- tc.setNamedColor(name);
- if (tc.isValid()) {
- rgb = tc.rgb();
+ StyleColor color;
+ color.setNamedColor(name);
+ if (color.isValid()) {
+ rgb = color.rgb();
return true;
}
return false;

Powered by Google App Engine
This is Rietveld 408576698