#include "third_party/blink/renderer/core/css/style_color.h"
#include <memory>
#include "third_party/blink/renderer/core/css/css_color.h"
#include "third_party/blink/renderer/core/css/css_color_mix_value.h"
#include "third_party/blink/renderer/core/css/css_identifier_value.h"
#include "third_party/blink/renderer/core/css/css_numeric_literal_value.h"
#include "third_party/blink/renderer/core/css_value_keywords.h"
#include "third_party/blink/renderer/core/layout/layout_theme.h"
namespace blink {
namespace {
UnderlyingColorType;
UnderlyingColorType ResolveColorOperandType(const StyleColor& c) { … }
Color ResolveColorOperand(const StyleColor::ColorOrUnresolvedColorMix& color,
UnderlyingColorType type,
const Color& current_color) { … }
}
StyleColor::UnresolvedColorMix::UnresolvedColorMix(
Color::ColorSpace color_interpolation_space,
Color::HueInterpolationMethod hue_interpolation_method,
const StyleColor& c1,
const StyleColor& c2,
double percentage,
double alpha_multiplier)
: … { … }
Color StyleColor::UnresolvedColorMix::Resolve(
const Color& current_color) const { … }
cssvalue::CSSColorMixValue* StyleColor::UnresolvedColorMix::ToCSSColorMixValue()
const { … }
void StyleColor::ColorOrUnresolvedColorMix::Trace(Visitor* visitor) const { … }
Color StyleColor::Resolve(const Color& current_color,
mojom::blink::ColorScheme color_scheme,
bool* is_current_color) const { … }
Color StyleColor::ResolveWithAlpha(Color current_color,
mojom::blink::ColorScheme color_scheme,
int alpha,
bool* is_current_color) const { … }
StyleColor StyleColor::ResolveSystemColor(
mojom::blink::ColorScheme color_scheme,
const ui::ColorProvider* color_provider,
bool is_in_web_app_scope) const { … }
Color StyleColor::ColorFromKeyword(CSSValueID keyword,
mojom::blink::ColorScheme color_scheme,
const ui::ColorProvider* color_provider,
bool is_in_web_app_scope) { … }
bool StyleColor::IsColorKeyword(CSSValueID id) { … }
Color StyleColor::GetColor() const { … }
bool StyleColor::IsSystemColorIncludingDeprecated(CSSValueID id) { … }
bool StyleColor::IsSystemColor(CSSValueID id) { … }
CSSValueID StyleColor::EffectiveColorKeyword() const { … }
CORE_EXPORT std::ostream& operator<<(std::ostream& stream,
const StyleColor& color) { … }
}