Searched refs:color_string (Results 1 – 4 of 4) sorted by relevance
16 bool ParseCSSColorString(const std::string& color_string, SkColor* result) { in ParseCSSColorString() argument19 if (color_string.empty() || color_string[0] != '#') in ParseCSSColorString()23 if (color_string.length() == 4) { in ParseCSSColorString()25 formatted_color += color_string[i]; in ParseCSSColorString()26 formatted_color += color_string[i]; in ParseCSSColorString()28 } else if (color_string.length() == 7) { in ParseCSSColorString()29 formatted_color = color_string.substr(1, 6); in ParseCSSColorString()
17 bool ParseCSSColorString(const std::string& color_string, SkColor* result);
532 std::string color_string; in RunExtensionAction() local533 EXTENSION_FUNCTION_VALIDATE(details_->GetString("color", &color_string)); in RunExtensionAction()534 if (!image_util::ParseCSSColorString(color_string, &color)) in RunExtensionAction()
141 static bool ParseCSSColorString(const std::string& color_string,