@@ -579,38 +579,38 @@ LayoutPoint RenderTheme::volumeSliderOffsetFromMuteButton(const RenderBox& muteB
579579
580580#endif
581581
582- Color RenderTheme::activeSelectionBackgroundColor () const
582+ Color RenderTheme::activeSelectionBackgroundColor (OptionSet<StyleColor::Options> options ) const
583583{
584584 if (!m_activeSelectionBackgroundColor.isValid ())
585- m_activeSelectionBackgroundColor = platformActiveSelectionBackgroundColor ().blendWithWhite ();
585+ m_activeSelectionBackgroundColor = platformActiveSelectionBackgroundColor (options ).blendWithWhite ();
586586 return m_activeSelectionBackgroundColor;
587587}
588588
589- Color RenderTheme::inactiveSelectionBackgroundColor () const
589+ Color RenderTheme::inactiveSelectionBackgroundColor (OptionSet<StyleColor::Options> options ) const
590590{
591591 if (!m_inactiveSelectionBackgroundColor.isValid ())
592- m_inactiveSelectionBackgroundColor = platformInactiveSelectionBackgroundColor ().blendWithWhite ();
592+ m_inactiveSelectionBackgroundColor = platformInactiveSelectionBackgroundColor (options ).blendWithWhite ();
593593 return m_inactiveSelectionBackgroundColor;
594594}
595595
596- Color RenderTheme::activeSelectionForegroundColor () const
596+ Color RenderTheme::activeSelectionForegroundColor (OptionSet<StyleColor::Options> options ) const
597597{
598598 if (!m_activeSelectionForegroundColor.isValid () && supportsSelectionForegroundColors ())
599- m_activeSelectionForegroundColor = platformActiveSelectionForegroundColor ();
599+ m_activeSelectionForegroundColor = platformActiveSelectionForegroundColor (options );
600600 return m_activeSelectionForegroundColor;
601601}
602602
603- Color RenderTheme::inactiveSelectionForegroundColor () const
603+ Color RenderTheme::inactiveSelectionForegroundColor (OptionSet<StyleColor::Options> options ) const
604604{
605605 if (!m_inactiveSelectionForegroundColor.isValid () && supportsSelectionForegroundColors ())
606- m_inactiveSelectionForegroundColor = platformInactiveSelectionForegroundColor ();
606+ m_inactiveSelectionForegroundColor = platformInactiveSelectionForegroundColor (options );
607607 return m_inactiveSelectionForegroundColor;
608608}
609609
610- Color RenderTheme::activeListBoxSelectionBackgroundColor () const
610+ Color RenderTheme::activeListBoxSelectionBackgroundColor (OptionSet<StyleColor::Options> options ) const
611611{
612612 if (!m_activeListBoxSelectionBackgroundColor.isValid ())
613- m_activeListBoxSelectionBackgroundColor = platformActiveListBoxSelectionBackgroundColor ();
613+ m_activeListBoxSelectionBackgroundColor = platformActiveListBoxSelectionBackgroundColor (options );
614614 return m_activeListBoxSelectionBackgroundColor;
615615}
616616
@@ -621,63 +621,63 @@ Color RenderTheme::inactiveListBoxSelectionBackgroundColor(OptionSet<StyleColor:
621621 return m_inactiveListBoxSelectionBackgroundColor;
622622}
623623
624- Color RenderTheme::activeListBoxSelectionForegroundColor () const
624+ Color RenderTheme::activeListBoxSelectionForegroundColor (OptionSet<StyleColor::Options> options ) const
625625{
626626 if (!m_activeListBoxSelectionForegroundColor.isValid () && supportsListBoxSelectionForegroundColors ())
627- m_activeListBoxSelectionForegroundColor = platformActiveListBoxSelectionForegroundColor ();
627+ m_activeListBoxSelectionForegroundColor = platformActiveListBoxSelectionForegroundColor (options );
628628 return m_activeListBoxSelectionForegroundColor;
629629}
630630
631- Color RenderTheme::inactiveListBoxSelectionForegroundColor () const
631+ Color RenderTheme::inactiveListBoxSelectionForegroundColor (OptionSet<StyleColor::Options> options ) const
632632{
633633 if (!m_inactiveListBoxSelectionForegroundColor.isValid () && supportsListBoxSelectionForegroundColors ())
634- m_inactiveListBoxSelectionForegroundColor = platformInactiveListBoxSelectionForegroundColor ();
634+ m_inactiveListBoxSelectionForegroundColor = platformInactiveListBoxSelectionForegroundColor (options );
635635 return m_inactiveListBoxSelectionForegroundColor;
636636}
637637
638- Color RenderTheme::platformActiveSelectionBackgroundColor () const
638+ Color RenderTheme::platformActiveSelectionBackgroundColor (OptionSet<StyleColor::Options> ) const
639639{
640640 // Use a blue color by default if the platform theme doesn't define anything.
641641 return Color (0 , 0 , 255 );
642642}
643643
644- Color RenderTheme::platformActiveSelectionForegroundColor () const
644+ Color RenderTheme::platformActiveSelectionForegroundColor (OptionSet<StyleColor::Options> ) const
645645{
646646 // Use a white color by default if the platform theme doesn't define anything.
647647 return Color::white;
648648}
649649
650- Color RenderTheme::platformInactiveSelectionBackgroundColor () const
650+ Color RenderTheme::platformInactiveSelectionBackgroundColor (OptionSet<StyleColor::Options> ) const
651651{
652652 // Use a grey color by default if the platform theme doesn't define anything.
653653 // This color matches Firefox's inactive color.
654654 return Color (176 , 176 , 176 );
655655}
656656
657- Color RenderTheme::platformInactiveSelectionForegroundColor () const
657+ Color RenderTheme::platformInactiveSelectionForegroundColor (OptionSet<StyleColor::Options> ) const
658658{
659659 // Use a black color by default.
660660 return Color::black;
661661}
662662
663- Color RenderTheme::platformActiveListBoxSelectionBackgroundColor () const
663+ Color RenderTheme::platformActiveListBoxSelectionBackgroundColor (OptionSet<StyleColor::Options> options ) const
664664{
665- return platformActiveSelectionBackgroundColor ();
665+ return platformActiveSelectionBackgroundColor (options );
666666}
667667
668- Color RenderTheme::platformActiveListBoxSelectionForegroundColor () const
668+ Color RenderTheme::platformActiveListBoxSelectionForegroundColor (OptionSet<StyleColor::Options> options ) const
669669{
670- return platformActiveSelectionForegroundColor ();
670+ return platformActiveSelectionForegroundColor (options );
671671}
672672
673- Color RenderTheme::platformInactiveListBoxSelectionBackgroundColor (OptionSet<StyleColor::Options>) const
673+ Color RenderTheme::platformInactiveListBoxSelectionBackgroundColor (OptionSet<StyleColor::Options> options ) const
674674{
675- return platformInactiveSelectionBackgroundColor ();
675+ return platformInactiveSelectionBackgroundColor (options );
676676}
677677
678- Color RenderTheme::platformInactiveListBoxSelectionForegroundColor () const
678+ Color RenderTheme::platformInactiveListBoxSelectionForegroundColor (OptionSet<StyleColor::Options> options ) const
679679{
680- return platformInactiveSelectionForegroundColor ();
680+ return platformInactiveSelectionForegroundColor (options );
681681}
682682
683683int RenderTheme::baselinePosition (const RenderBox& box) const
0 commit comments