#include "content/public/common/color_parser.h"
#include <stdint.h>
#include <algorithm>
#include <cmath>
#include "base/containers/contains.h"
#include "base/notreached.h"
#include "base/numerics/safe_conversions.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "third_party/re2/src/re2/re2.h"
#include "third_party/skia/include/utils/SkParse.h"
#include "ui/gfx/color_utils.h"
namespace content {
namespace {
bool ParseHslColorString(const std::string& color_string, SkColor* result) { … }
}
bool ParseCssColorString(const std::string& color_string, SkColor* result) { … }
bool ParseHexColorString(const std::string& color_string, SkColor* result) { … }
bool ParseRgbColorString(const std::string& color_string, SkColor* result) { … }
}