@@ -884,7 +884,8 @@ class WEB_API ComputedValues final : public RefCounted<ComputedValues> {
884884 CSSPixels border_spacing_horizontal () const { return m_inherited.border_spacing_horizontal ; }
885885 CSSPixels border_spacing_vertical () const { return m_inherited.border_spacing_vertical ; }
886886 CaptionSide caption_side () const { return m_inherited.caption_side ; }
887- Color caret_color () const { return m_inherited.caret_color ; }
887+ ColorOrAuto const & caret_color_value () const { return m_inherited.caret_color ; }
888+ Color caret_color () const { return m_inherited.caret_color .used_value ; }
888889 Clear clear () const { return m_noninherited.clear ; }
889890 Clip clip () const { return m_noninherited.clip ; }
890891 ColorInterpolation color_interpolation () const { return m_inherited.color_interpolation ; }
@@ -1202,7 +1203,7 @@ class WEB_API ComputedValues final : public RefCounted<ComputedValues> {
12021203 void inherit_from (ComputedValues const & other) { m_inherited = other.m_inherited ; }
12031204
12041205 struct InheritedValues {
1205- Color caret_color { InitialValues::caret_color () } ;
1206+ ColorOrAuto caret_color;
12061207 CSSPixels font_size { InitialValues::font_size () };
12071208 RefPtr<Gfx::FontCascadeList const > font_list {};
12081209 Vector<ComputedFontFamily> font_families { GenericFontFamily::Serif };
@@ -1532,7 +1533,7 @@ class ComputedValues::Mutator final {
15321533 void set_animation_timelines (Vector<AnimationTimelineData> value) { m_values.m_noninherited .animation_timelines = move (value); }
15331534 void set_animation_timing_functions (Vector<EasingFunction> value) { m_values.m_noninherited .animation_timing_functions = move (value); }
15341535 void set_animation_timing_function_style_values (StyleValueVector value) { m_values.m_noninherited .animation_timing_function_style_values = move (value); }
1535- void set_caret_color (Color caret_color) { m_values.m_inherited .caret_color = caret_color; }
1536+ void set_caret_color (ColorOrAuto caret_color) { m_values.m_inherited .caret_color = move ( caret_color) ; }
15361537 void set_font_list (NonnullRefPtr<Gfx::FontCascadeList const > font_list) { m_values.m_inherited .font_list = move (font_list); }
15371538 void set_font_families (Vector<ComputedFontFamily> value) { m_values.m_inherited .font_families = move (value); }
15381539 void set_font_size (CSSPixels font_size) { m_values.m_inherited .font_size = font_size; }
0 commit comments