Bug 555508 - The 'active' attribute is gone, should instead use -moz-window-inactive pseudoclass. r=Mnyromyr, sr=Neil.
authorstefanh@inbox.com
Thu, 20 May 2010 20:52:52 +0200
changeset 5715 17735b9dc0ba80b54125b896ec93c1e957d58cb8
parent 5714 b87737b75c573b165782be4bb763911b2e227c33
child 5716 b66512ef69bbc7f9dfd434034f539cd05adbb746
push id4426
push userstefanh@inbox.com
push dateThu, 20 May 2010 18:53:01 +0000
treeherdercomm-central@17735b9dc0ba [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMnyromyr, Neil
bugs555508
Bug 555508 - The 'active' attribute is gone, should instead use -moz-window-inactive pseudoclass. r=Mnyromyr, sr=Neil.
suite/themes/classic/mac/communicator/downloads/downloadmanager.css
suite/themes/classic/mac/messenger/addressbook/addressbook.css
suite/themes/classic/mac/messenger/mailWindow1.css
suite/themes/classic/mac/navigator/linkToolbar.css
suite/themes/classic/mac/navigator/navigator.css
suite/themes/classic/mac/navigator/pageInfo.css
--- a/suite/themes/classic/mac/communicator/downloads/downloadmanager.css
+++ b/suite/themes/classic/mac/communicator/downloads/downloadmanager.css
@@ -60,17 +60,17 @@
 }
 
 #clearListButton:active:hover:not([disabled="true"]) {
   background-image: none;
   -moz-box-shadow: inset rgba(0, 0, 0, 0.3) 0 -6px 14px, inset #000000 0 1px 4px, inset rgba(0, 0, 0, 0.2) 0 1px 4px, 0 1px rgba(255, 255, 255, .4);
 }
 
 #clearListButton[disabled="true"],
-:root:not([active]) #clearListButton {
+#clearListButton:-moz-window-inactive {
   color: #7C7C7C !important; /* remove this when we support click-through */
   border-color: rgba(146, 146, 146, 0.84);
   background-image: -moz-linear-gradient(top, #FFFFFF, #CCCCCC);
 }
 
 treechildren::-moz-tree-image {
   -moz-margin-start: -1px;
 }
@@ -133,17 +133,17 @@ treechildren::-moz-tree-progressmeter {
   padding-bottom: 1px;
   margin-top: 3px;
 }
 
 treechildren:-moz-system-metric(mac-graphite-theme)::-moz-tree-progressmeter {
   color: rgba(43, 71, 106, 0.5);
 }
 
-:root:not([active]) treechildren::-moz-tree-progressmeter {
+treechildren:-moz-window-inactive::-moz-tree-progressmeter {
   color: rgba(0, 0, 0, 0.1);
 }
 
 /* progress dialogs */
 
 #dlProgressWindow {
   padding: 14px;
 }
--- a/suite/themes/classic/mac/messenger/addressbook/addressbook.css
+++ b/suite/themes/classic/mac/messenger/addressbook/addressbook.css
@@ -154,19 +154,17 @@
   min-width: 5px;
   background-color: #D6DDE5;
 }
 
 #dirTreeBox {
   background-color: #D6DDE5;
 }
 
-/* Inactive window */
-
-#addressbookWindow:not([active="true"]) > hbox > #dirTreeBox {
+#dirTreeBox:-moz-window-inactive {
   background-color: #E8E8E8;
 }
 
 #dirTree {
   background-color: transparent;
 }
 
 #dirTree > treechildren::-moz-tree-row {
--- a/suite/themes/classic/mac/messenger/mailWindow1.css
+++ b/suite/themes/classic/mac/messenger/mailWindow1.css
@@ -64,19 +64,17 @@
   min-height: 10px;
   height: 0px;
 }
 
 #folderPaneBox {
   background-color: #D6DDE5;
 }
 
-/* Inactive window */
-
-#messengerWindow:not([active="true"]) > #mailContent > #messengerBox > #folderPaneBox {
+#folderPaneBox:-moz-window-inactive {
   background-color: #E8E8E8;
 }
 
 #msgLocationToolbar {
   -moz-appearance: none;
   background-color: #CDCDCD;
   background-image: url("chrome://communicator/skin/toolbar/toolbar-gradient34.png");
   background-repeat: repeat-x;
--- a/suite/themes/classic/mac/navigator/linkToolbar.css
+++ b/suite/themes/classic/mac/navigator/linkToolbar.css
@@ -46,16 +46,20 @@
 #linktoolbar {
   -moz-appearance: none;
   background-color: #d5d5d5;
   background-image: url("chrome://communicator/skin/toolbar-gradient22.png");
   background-repeat: repeat-x;
   border-bottom: 1px solid rgb(159, 159, 159);
 }
 
+#linktoolbar:-moz-window-inactive {
+  opacity: 0.75;
+}
+
 #linktoolbar > .bookmark-item {
   text-shadow: none;
 }
 
 #linktoolbar > .bookmark-item:hover:active,
 #linktoolbar > .bookmark-item[container="true"][open="true"] {
   text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7);
 }
--- a/suite/themes/classic/mac/navigator/navigator.css
+++ b/suite/themes/classic/mac/navigator/navigator.css
@@ -47,23 +47,16 @@
   -moz-appearance: none;
   background-color: #EEEEEE;
 }
 
 #main-window[chromehidden~="toolbar"][chromehidden~="location"][chromehidden~="directories"] {
   border-top: 1px solid rgba(0,0,0,0.65);
 }
 
-#main-window:not([active="true"]) > #navigator-toolbox > #nav-bar > #nav-bar-inner,
-#main-window:not([active="true"]) > #navigator-toolbox > #nav-bar > toolbaritem,
-#main-window:not([active="true"]) > #navigator-toolbox > #PersonalToolbar,
-#main-window:not([active="true"]) > #navigator-toolbox > #linktoolbar {
-  opacity: 0.75;
-}
-
 /* ::::: primary toolbar buttons ::::: */
 
 #back-button {
   list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
   -moz-image-region: rect(60px 29px 89px 0);
 }
 
 #back-button:hover:active,
@@ -261,16 +254,20 @@ toolbar[mode="text"] > #window-controls 
   
 /* ::::: nav-bar-inner ::::: */
 
 #nav-bar-inner {
   -moz-box-align: center;
   min-width: 0px;
 }
 
+#nav-bar-inner:-moz-window-inactive {
+  opacity: 0.75;
+}
+
 /* nsNativeThemeCocoa adds top/bottom padding to textfields... */
 #urlbar > .autocomplete-textbox-container,
 #urlbar > .autocomplete-history-dropmarker {
   margin-top: -1px;
   margin-bottom: -2px;
   padding-top: 1px;
   padding-bottom: 1px;
 }
@@ -287,16 +284,20 @@ toolbar[mode="text"] > #window-controls 
   background-color: InfoBackground !important;
 }
 
 #wrapper-nav-bar-inner[place="palette"] > #nav-bar-inner > .button-toolbar,
 #wrapper-nav-bar-inner[place="palette"] > #nav-bar-inner > #urlbar > .urlbar-icons {
   display: none;
 }
 
+#nav-bar > toolbaritem:-moz-window-inactive {
+  opacity: 0.75;
+}
+
 /* ::::: page proxy icon ::::: */
 
 #page-proxy-deck,
 #page-proxy-favicon,
 #page-proxy-button {
   width: 16px;
   height: 16px;
 }
@@ -430,16 +431,20 @@ toolbar[mode="icons"] #search-button > .
 #PersonalToolbar {
   -moz-appearance: none;
   background-color: #d5d5d5;
   background-image: url("chrome://communicator/skin/toolbar-gradient22.png");
   background-repeat: repeat-x;
   border-bottom: 1px solid rgb(159, 159, 159);
 }
 
+#PersonalToolbar:-moz-window-inactive {
+  opacity: 0.75;
+}
+
 #PersonalToolbar > #home-button,
 #PersonalToolbar > .bookmark-item,
 #personal-bookmarks > .bookmark-item,
 #bookmarks-ptf > .bookmark-item {
   text-shadow: none;
 }
 
 #PersonalToolbar > #home-button:hover:active,
--- a/suite/themes/classic/mac/navigator/pageInfo.css
+++ b/suite/themes/classic/mac/navigator/pageInfo.css
@@ -103,27 +103,27 @@ tab[selected=true] {
   -moz-box-shadow: inset #2A2A2A 0 3px 5px;
 }
 
 tab[selected=true]:active:hover {
   background-color: #4E4E4E;
   -moz-box-shadow: inset #1c1c1c 0 3px 5px;
 }
 
-:root:not([active]) #tabs {
+#tabs:-moz-window-inactive {
   background-color: rgba(0, 0, 0, 0.25);
 }
 
-:root:not([active]) tab {
+tab:-moz-window-inactive {
   color: #7C7C7C !important; /* remove this when we support click-through */
   border-color: rgba(0, 0, 0, 0.4);
   background-image: -moz-linear-gradient(top, #FFF, #CCC);
 }
 
-:root:not([active]) tab[selected=true] {
+tab[selected=true]:-moz-window-inactive {
   color: #E6E6E6 !important; /* remove this when we support click-through */
   background: #8E8E8E;
   -moz-box-shadow: inset rgba(0, 0, 0, 0.5) 0 3px 5px;
 }
 
 #tabs:-moz-locale-dir(ltr) > :first-child,
 #tabs:-moz-locale-dir(rtl) > :last-child {
   -moz-border-radius-topleft: 2px;