Bug 1755564 - Make SpellCheckerUnderline go through the stand-in color code-path. r=geckoview-reviewers,calu

This doesn't change behavior since it's red for all platforms including
the standins.

Depends on D157748

Differential Revision: https://phabricator.services.mozilla.com/D163402
This commit is contained in:
Emilio Cobos Álvarez 2022-12-07 18:44:57 +00:00
Родитель 2ed158986e
Коммит fb4758fe7f
4 изменённых файлов: 4 добавлений и 12 удалений

Просмотреть файл

@ -152,9 +152,6 @@ nsresult nsLookAndFeel::NativeGetColor(ColorID aID, ColorScheme aColorScheme,
case ColorID::IMESelectedConvertedTextUnderline:
aColor = NS_TRANSPARENT;
break;
case ColorID::SpellCheckerUnderline:
aColor = NS_RGB(0xff, 0x00, 0x00);
break;
// css2 http://www.w3.org/TR/REC-CSS2/ui.html#system-colors
case ColorID::Activeborder: // active window border
@ -264,6 +261,7 @@ nsresult nsLookAndFeel::NativeGetColor(ColorID aID, ColorScheme aColorScheme,
break;
case ColorID::Marktext:
case ColorID::Mark:
case ColorID::SpellCheckerUnderline:
aColor = GetStandinForNativeColor(aID, aColorScheme);
break;
default:

Просмотреть файл

@ -162,9 +162,6 @@ nsresult nsLookAndFeel::NativeGetColor(ColorID aID, ColorScheme aScheme, nscolor
case ColorID::IMESelectedConvertedTextUnderline:
color = NS_SAME_AS_FOREGROUND_COLOR;
break;
case ColorID::SpellCheckerUnderline:
color = NS_RGB(0xff, 0, 0);
break;
//
// css2 system colors http://www.w3.org/TR/REC-CSS2/ui.html#system-colors
@ -349,6 +346,7 @@ nsresult nsLookAndFeel::NativeGetColor(ColorID aID, ColorScheme aScheme, nscolor
break;
case ColorID::Marktext:
case ColorID::Mark:
case ColorID::SpellCheckerUnderline:
aColor = GetStandinForNativeColor(aID, aScheme);
return NS_OK;
default:

Просмотреть файл

@ -566,9 +566,6 @@ nsresult nsLookAndFeel::PerThemeData::GetColor(ColorID aID,
case ColorID::IMESelectedConvertedTextUnderline:
aColor = NS_TRANSPARENT;
break;
case ColorID::SpellCheckerUnderline:
aColor = NS_RGB(0xff, 0, 0);
break;
case ColorID::Scrollbar:
aColor = mThemedScrollbar;
break;
@ -740,6 +737,7 @@ nsresult nsLookAndFeel::PerThemeData::GetColor(ColorID aID,
case ColorID::MozColheaderhovertext:
aColor = mMozColHeaderHoverText;
break;
case ColorID::SpellCheckerUnderline:
case ColorID::Mark:
case ColorID::Marktext:
aColor = GetStandinForNativeColor(

Просмотреть файл

@ -187,9 +187,6 @@ nsresult nsLookAndFeel::NativeGetColor(ColorID aID, ColorScheme aScheme,
case ColorID::IMESelectedConvertedTextUnderline:
aColor = NS_TRANSPARENT;
return NS_OK;
case ColorID::SpellCheckerUnderline:
aColor = NS_RGB(0xff, 0, 0);
return NS_OK;
// New CSS 2 Color definitions
case ColorID::Activeborder:
@ -381,6 +378,7 @@ nsresult nsLookAndFeel::NativeGetColor(ColorID aID, ColorScheme aScheme,
break;
case ColorID::Marktext:
case ColorID::Mark:
case ColorID::SpellCheckerUnderline:
aColor = GetStandinForNativeColor(aID, aScheme);
return NS_OK;
default: