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; |
sashab
2015/10/21 05:41:52
+aelias ptal... Can't think of a better way to do
|
} |
} // namespace blink |