diff options
author | Moonchild <moonchild@palemoon.org> | 2021-05-06 09:24:03 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2021-05-06 09:24:03 +0000 |
commit | 6f707bde95dab6998ac204f9ee6c925ee230c740 (patch) | |
tree | 859f6cf99f2e026b76dcc40b27b211154310d16e /toolkit/modules | |
parent | aa0fd3d68c856504646e1d7eb499bc890ef44101 (diff) | |
download | uxp-6f707bde95dab6998ac204f9ee6c925ee230c740.tar.gz |
Issue #1751 -- Remove XP_MACOSX conditionals from the rest of the tree.
This also removes some PP abuse and takes file entries out of PP when no longer
needed without XP_MACOSX conditionals.
Diffstat (limited to 'toolkit/modules')
-rw-r--r-- | toolkit/modules/AppConstants.jsm | 2 | ||||
-rw-r--r-- | toolkit/modules/LightweightThemeConsumer.jsm | 23 | ||||
-rw-r--r-- | toolkit/modules/UpdateUtils.jsm | 11 | ||||
-rw-r--r-- | toolkit/modules/WindowDraggingUtils.jsm | 2 | ||||
-rw-r--r-- | toolkit/modules/moz.build | 2 |
5 files changed, 2 insertions, 38 deletions
diff --git a/toolkit/modules/AppConstants.jsm b/toolkit/modules/AppConstants.jsm index 030260cff1..8b41fe4412 100644 --- a/toolkit/modules/AppConstants.jsm +++ b/toolkit/modules/AppConstants.jsm @@ -135,8 +135,6 @@ MOZ_SAFE_BROWSING: "linux", #elif XP_WIN "win", -#elif XP_MACOSX - "macosx", #elif XP_LINUX "linux", #else diff --git a/toolkit/modules/LightweightThemeConsumer.jsm b/toolkit/modules/LightweightThemeConsumer.jsm index 4010a9ff22..9419fdcf23 100644 --- a/toolkit/modules/LightweightThemeConsumer.jsm +++ b/toolkit/modules/LightweightThemeConsumer.jsm @@ -147,29 +147,6 @@ LightweightThemeConsumer.prototype = { footer.removeAttribute("lwthemefooter"); } -#if defined(XP_MACOSX) && defined(MOZ_CAN_DRAW_IN_TITLEBAR) - // On OS X, we extend the lightweight theme into the titlebar, which means setting - // the chromemargin attribute. Some XUL applications already draw in the titlebar, - // so we need to save the chromemargin value before we overwrite it with the value - // that lets us draw in the titlebar. We stash this value on the root attribute so - // that XUL applications have the ability to invalidate the saved value. - if (stateChanging) { - if (!root.hasAttribute("chromemargin-nonlwtheme")) { - root.setAttribute("chromemargin-nonlwtheme", root.getAttribute("chromemargin")); - } - - if (active) { - root.setAttribute("chromemargin", "0,-1,-1,-1"); - } else { - let defaultChromemargin = root.getAttribute("chromemargin-nonlwtheme"); - if (defaultChromemargin) { - root.setAttribute("chromemargin", defaultChromemargin); - } else { - root.removeAttribute("chromemargin"); - } - } - } -#endif Services.obs.notifyObservers(this._win, "lightweight-theme-window-updated", JSON.stringify(aData)); } diff --git a/toolkit/modules/UpdateUtils.jsm b/toolkit/modules/UpdateUtils.jsm index 5acf395d3d..5e3a2e100a 100644 --- a/toolkit/modules/UpdateUtils.jsm +++ b/toolkit/modules/UpdateUtils.jsm @@ -168,17 +168,6 @@ XPCOMUtils.defineLazyGetter(UpdateUtils, "ABI", function() { Cu.reportError("XPCOM ABI unknown"); } -#ifdef XP_MACOSX - // Mac universal build should report a different ABI than either macppc - // or mactel. - let macutils = Cc["@mozilla.org/xpcom/mac-utils;1"]. - getService(Ci.nsIMacUtils); - - if (macutils.isUniversalBinary) { - abi += "-u-" + macutils.architecturesInBinary; - } -#endif - return abi; }); diff --git a/toolkit/modules/WindowDraggingUtils.jsm b/toolkit/modules/WindowDraggingUtils.jsm index a7986c8b4a..5be8814de1 100644 --- a/toolkit/modules/WindowDraggingUtils.jsm +++ b/toolkit/modules/WindowDraggingUtils.jsm @@ -2,7 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#if defined(XP_WIN) || defined(XP_MACOSX) +#if defined(XP_WIN) const HAVE_CSS_WINDOW_DRAG_SUPPORT = true; #else const HAVE_CSS_WINDOW_DRAG_SUPPORT = false; diff --git a/toolkit/modules/moz.build b/toolkit/modules/moz.build index e8ab5e872f..9adafe1403 100644 --- a/toolkit/modules/moz.build +++ b/toolkit/modules/moz.build @@ -103,7 +103,7 @@ EXTRA_PP_JS_MODULES += [ ] -EXTRA_PP_JS_MODULES += [ +EXTRA_JS_MODULES += [ 'LightweightThemeConsumer.jsm', ] |