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

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

Issue 23581008: Revert r154797: "Move isValid/isCurrentColor from Color to StyleColor" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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 8907000f6087060f6bb068e600e091bfa4c0c538..0519dafc376627deb809570086689d1e226438be 100644
--- a/Source/core/css/CSSParser-in.cpp
+++ b/Source/core/css/CSSParser-in.cpp
@@ -6127,10 +6127,10 @@ bool CSSParser::fastParseColor(RGBA32& rgb, const StringType& name, bool strict)
return true;
// Try named colors.
- StyleColor color;
- color.setNamedColor(name);
- if (color.isValid()) {
- rgb = color.rgb();
+ Color tc;
+ tc.setNamedColor(name);
+ if (tc.isValid()) {
+ rgb = tc.rgb();
return true;
}
return false;

Powered by Google App Engine
This is Rietveld 408576698