summaryrefslogtreecommitdiffstats
path: root/widget/nsXPLookAndFeel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'widget/nsXPLookAndFeel.cpp')
-rw-r--r--widget/nsXPLookAndFeel.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/widget/nsXPLookAndFeel.cpp b/widget/nsXPLookAndFeel.cpp
index 0c5b5207f2..cb34f7b067 100644
--- a/widget/nsXPLookAndFeel.cpp
+++ b/widget/nsXPLookAndFeel.cpp
@@ -146,7 +146,6 @@ static const char sIntPrefs[][45] = {
"ui.treeLazyScrollDelay",
"ui.treeScrollDelay",
"ui.treeScrollLinesMax",
- "accessibility.tabfocus", // Weird one...
"ui.chosenMenuItemsShouldBlink",
"ui.windowsAccentColorInTitlebar",
"ui.macBigSurTheme",
@@ -527,9 +526,6 @@ void nsXPLookAndFeel::Init() {
// for each types. Then, we could reduce the unnecessary loop from
// nsXPLookAndFeel::OnPrefChanged().
Preferences::RegisterPrefixCallback(OnPrefChanged, "ui.");
- // We really do just want the accessibility.tabfocus pref, not other prefs
- // that start with that string.
- Preferences::RegisterCallback(OnPrefChanged, "accessibility.tabfocus");
for (const auto& pref : kMediaQueryPrefs) {
Preferences::RegisterCallback(
@@ -1237,8 +1233,7 @@ void LookAndFeel::DoHandleGlobalThemeChange() {
//
// We can use the *DoNotUseDirectly functions directly here, because we want
// to notify all possible themes in a given process (but just once).
- if (XRE_IsParentProcess() ||
- !StaticPrefs::widget_non_native_theme_enabled()) {
+ if (XRE_IsParentProcess()) {
if (nsCOMPtr<nsITheme> theme = do_GetNativeThemeDoNotUseDirectly()) {
theme->ThemeChanged();
}