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

Unified Diff: third_party/WebKit/Source/web/WebCSSParser.cpp

Issue 1399853005: Changed CSSColorValue to return a Color (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@split_color
Patch Set: Rebase Created 5 years, 1 month 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: third_party/WebKit/Source/web/WebCSSParser.cpp
diff --git a/third_party/WebKit/Source/web/WebCSSParser.cpp b/third_party/WebKit/Source/web/WebCSSParser.cpp
index ae13da3cb1e9b376d217d884c2eef63c6caefec6..39b5e8160b0ca8681d90d51f7f641b3197f8970c 100644
--- a/third_party/WebKit/Source/web/WebCSSParser.cpp
+++ b/third_party/WebKit/Source/web/WebCSSParser.cpp
@@ -10,9 +10,12 @@
namespace blink {
-bool WebCSSParser::parseColor(WebColor* color, const WebString& colorString)
+bool WebCSSParser::parseColor(WebColor* webColor, const WebString& colorString)
{
- return CSSParser::parseColor(*color, colorString, true);
+ Color color = Color(*webColor);
+ bool success = CSSParser::parseColor(color, colorString, true);
+ *webColor = color.rgb();
+ return success;
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698