#include "third_party/blink/renderer/modules/canvas/canvas2d/canvas_style.h"
#include "base/notreached.h"
#include "cc/paint/paint_flags.h"
#include "third_party/blink/public/mojom/frame/color_scheme.mojom-blink.h"
#include "third_party/blink/renderer/core/css/css_color_mix_value.h"
#include "third_party/blink/renderer/core/css/css_property_names.h"
#include "third_party/blink/renderer/core/css/parser/css_parser.h"
#include "third_party/blink/renderer/core/css/parser/css_parser_context.h"
#include "third_party/blink/renderer/core/css/resolver/style_builder_converter.h"
#include "third_party/blink/renderer/core/css/style_color.h"
#include "third_party/blink/renderer/core/dom/text_link_colors.h"
#include "third_party/blink/renderer/core/execution_context/security_context.h"
#include "third_party/blink/renderer/core/html/parser/html_parser_idioms.h"
#include "third_party/blink/renderer/modules/canvas/canvas2d/canvas_gradient.h"
#include "third_party/blink/renderer/modules/canvas/canvas2d/canvas_pattern.h"
#include "third_party/blink/renderer/platform/graphics/gradient.h"
#include "third_party/blink/renderer/platform/graphics/graphics_context.h"
#include "third_party/blink/renderer/platform/graphics/pattern.h"
#include "third_party/blink/renderer/platform/graphics/skia/skia_utils.h"
#include "third_party/blink/renderer/platform/heap/visitor.h"
#include "third_party/blink/renderer/platform/wtf/casting.h"
#include "third_party/blink/renderer/platform/wtf/text/string_view.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_uchar.h"
#include "third_party/skia/include/core/SkColor.h"
#include "third_party/skia/include/core/SkMatrix.h"
namespace blink {
static ColorParseResult ParseColor(Color& parsed_color,
const String& color_string,
mojom::blink::ColorScheme color_scheme,
const ui::ColorProvider* color_provider,
bool is_in_web_app_scope) { … }
ColorParseResult ParseCanvasColorString(const String& color_string,
mojom::blink::ColorScheme color_scheme,
Color& parsed_color,
const ui::ColorProvider* color_provider,
bool is_in_web_app_scope) { … }
bool ParseCanvasColorString(const String& color_string, Color& parsed_color) { … }
void CanvasStyle::ApplyToFlags(cc::PaintFlags& flags,
float global_alpha) const { … }
void CanvasStyle::Trace(Visitor* visitor) const { … }
}