зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
2ed158986e
Коммит
fb4758fe7f
|
@ -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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче