@@ -770,7 +770,7 @@ struct TextDecorationThickness {
770770 Variant<Auto, FromFont, LengthPercentage> value;
771771};
772772
773- struct AccentColor {
773+ struct ColorOrAuto {
774774 struct Auto { };
775775
776776 Variant<Auto, Color> computed_value { Auto {} };
@@ -957,10 +957,10 @@ class WEB_API ComputedValues final : public RefCounted<ComputedValues> {
957957 double flex_grow () const { return m_noninherited.flex_grow ; }
958958 double flex_shrink () const { return m_noninherited.flex_shrink ; }
959959 i32 order () const { return m_noninherited.order ; }
960- AccentColor const & accent_color_value () const { return m_inherited.accent_color ; }
960+ ColorOrAuto const & accent_color_value () const { return m_inherited.accent_color ; }
961961 Optional<Color> accent_color () const
962962 {
963- if (m_inherited.accent_color .computed_value .has <AccentColor ::Auto>())
963+ if (m_inherited.accent_color .computed_value .has <ColorOrAuto ::Auto>())
964964 return {};
965965 return m_inherited.accent_color .used_value ;
966966 }
@@ -1228,7 +1228,7 @@ class WEB_API ComputedValues final : public RefCounted<ComputedValues> {
12281228 PreferredColorScheme color_scheme { InitialValues::color_scheme () };
12291229 Vector<Utf16FlyString> color_schemes;
12301230 bool color_scheme_only { false };
1231- AccentColor accent_color;
1231+ ColorOrAuto accent_color;
12321232 Color webkit_text_fill_color { InitialValues::color () };
12331233 bool webkit_text_fill_color_is_current_color { true };
12341234 Vector<CursorData> cursor { InitialValues::cursor () };
@@ -1714,7 +1714,7 @@ class ComputedValues::Mutator final {
17141714 void set_flex_grow (double value) { m_values.m_noninherited .flex_grow = value; }
17151715 void set_flex_shrink (double value) { m_values.m_noninherited .flex_shrink = value; }
17161716 void set_order (i32 value) { m_values.m_noninherited .order = value; }
1717- void set_accent_color (AccentColor value) { m_values.m_inherited .accent_color = move (value); }
1717+ void set_accent_color (ColorOrAuto value) { m_values.m_inherited .accent_color = move (value); }
17181718 void set_align_content (AlignContent value) { m_values.m_noninherited .align_content = value; }
17191719 void set_align_items (AlignItems value) { m_values.m_noninherited .align_items = value; }
17201720 void set_align_self (AlignSelf value) { m_values.m_noninherited .align_self = value; }
0 commit comments