diff options
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 | 4 |
5 files changed, 3 insertions, 39 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..225f3d9321 100644 --- a/toolkit/modules/moz.build +++ b/toolkit/modules/moz.build @@ -94,7 +94,7 @@ EXTRA_PP_JS_MODULES += [ if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('windows', 'gtk2', 'gtk3'): DEFINES['MENUBAR_CAN_AUTOHIDE'] = 1 -if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('windows', 'gtk2', 'gtk3', 'cocoa'): +if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('windows', 'gtk2', 'gtk3'): DEFINES['HAVE_SHELL_SERVICE'] = 1 EXTRA_PP_JS_MODULES += [ @@ -103,7 +103,7 @@ EXTRA_PP_JS_MODULES += [ ] -EXTRA_PP_JS_MODULES += [ +EXTRA_JS_MODULES += [ 'LightweightThemeConsumer.jsm', ] |