Bug 1501235 - Move menubar autohide code from xul.css to browser.css. r=bgrins
authorDão Gottwald <dao@mozilla.com>
Tue, 23 Oct 2018 14:04:13 +0000
changeset 490930 9f1638baff13835cc75e7feebf674b42544c6360
parent 490901 2eb4c1dd70f144a84c0eb9e96f2db53b2860742b
child 490931 b5cd2090c0d2e5118de2e4ffd1ae967d3d7e848a
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewersbgrins
bugs1501235
milestone65.0a1
Bug 1501235 - Move menubar autohide code from xul.css to browser.css. r=bgrins Differential Revision: https://phabricator.services.mozilla.com/D9499
browser/base/content/browser.css
toolkit/content/xul.css
toolkit/themes/linux/global/global.css
toolkit/themes/osx/global/toolbar.css
--- a/browser/base/content/browser.css
+++ b/browser/base/content/browser.css
@@ -65,16 +65,28 @@
   min-height: 25px;
   min-width: 25px;
 }
 
 toolbar[customizable="true"] {
   -moz-binding: url("chrome://browser/content/customizableui/toolbar.xml#toolbar");
 }
 
+%ifdef MENUBAR_CAN_AUTOHIDE
+#toolbar-menubar[autohide="true"] {
+  overflow: hidden;
+}
+
+#toolbar-menubar[autohide="true"][inactive="true"]:not([customizing="true"]) {
+  min-height: 0 !important;
+  height: 0 !important;
+  -moz-appearance: none !important;
+}
+%endif
+
 %ifdef XP_MACOSX
 #toolbar-menubar {
   -moz-binding: none;
 }
 %endif
 
 panelmultiview {
   -moz-box-align: start;
--- a/toolkit/content/xul.css
+++ b/toolkit/content/xul.css
@@ -277,27 +277,16 @@ toolbar[customizing="true"][hidden="true
   display: -moz-box;
 }
 
 %ifdef XP_MACOSX
 toolbar[type="menubar"] {
   min-height: 0 !important;
   border: 0 !important;
 }
-%else
-toolbar[type="menubar"][autohide="true"] {
-  overflow: hidden;
-}
-
-toolbar[type="menubar"][autohide="true"][inactive="true"]:not([customizing="true"]) {
-  min-height: 0 !important;
-  height: 0 !important;
-  -moz-appearance: none !important;
-  border-style: none !important;
-}
 %endif
 
 toolbarspring {
   -moz-box-flex: 1000;
 }
 
 /********* menu ***********/
 
--- a/toolkit/themes/linux/global/global.css
+++ b/toolkit/themes/linux/global/global.css
@@ -14,17 +14,17 @@
 
 /* ::::: XBL bindings ::::: */
 
 menulist > menupopup {
   -moz-binding: url("chrome://global/content/bindings/popup.xml#popup-scrollbars");
 }
 
 @media (-moz-menubar-drag) {
-  toolbar[type="menubar"]:not([autohide="true"]) {
+  toolbar[type="menubar"] {
     -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar-drag");
   }
 }
 
 /* ::::: Variables ::::: */
 :root {
   --default-arrowpanel-background: -moz-field;
   --default-arrowpanel-color: -moz-fieldText;
--- a/toolkit/themes/osx/global/toolbar.css
+++ b/toolkit/themes/osx/global/toolbar.css
@@ -13,18 +13,16 @@ toolbox {
 toolbar {
   min-width: 1px;
   min-height: 20px;
   -moz-appearance: toolbar;
 }
 
 toolbar:-moz-lwtheme {
   -moz-appearance: none;
-  background: none;
-  border-color: transparent;
 }
 
 toolbarseparator {
   -moz-appearance: separator;
   margin: 3px 4px;
 }
 
 toolbarpaletteitem {