summaryrefslogtreecommitdiffstats
path: root/widget/nsXPLookAndFeel.cpp
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:43:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:43:14 +0000
commit8dd16259287f58f9273002717ec4d27e97127719 (patch)
tree3863e62a53829a84037444beab3abd4ed9dfc7d0 /widget/nsXPLookAndFeel.cpp
parentReleasing progress-linux version 126.0.1-1~progress7.99u1. (diff)
downloadfirefox-8dd16259287f58f9273002717ec4d27e97127719.tar.xz
firefox-8dd16259287f58f9273002717ec4d27e97127719.zip
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-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();
}