Bug 1428991 - Remove the usage of the tabmail-tabs class. r=jorgk

--HG--
extra : rebase_source : 06f91949cb0774f3d391257aa43dc1f7f8c61129
This commit is contained in:
Richard Marti 2018-01-07 14:19:48 +01:00
Родитель a25cd01029
Коммит 77918d609d
7 изменённых файлов: 18 добавлений и 18 удалений

Просмотреть файл

@ -130,7 +130,7 @@ function testTodayPane() {
// go to mail tab
controller.click(lookup(`
/id("messengerWindow")/id("navigation-toolbox")/id("tabs-toolbar")/
id("tabcontainer")/{"first-tab":"true","type":"folder"}/
id("tabmail-tabs")/{"first-tab":"true","type":"folder"}/
anon({"class":"tab-stack"})/{"class":"tab-background"}/
{"class":"tab-line"}
`));

Просмотреть файл

@ -240,9 +240,9 @@
<toolbox id="navigation-toolbox" class="toolbox-top">
<toolbar id="tabs-toolbar" class="toolbar-primary">
<!-- class tabmail-tabs is unused and only maintained for add-ons. -->
<tabs flex="1"
id="tabcontainer"
id="tabmail-tabs"
align="end"
setfocus="false"
onclick="document.getElementById('tabmail').onTabClick(event);"
@ -275,7 +275,7 @@
tooltiptext="&listAllTabs.label;">
<menupopup class="tabs-alltabs-popup"
id="alltabs-popup" position="after_end"
tabcontainer="tabcontainer"/>
tabcontainer="tabmail-tabs"/>
</toolbarbutton>
#ifdef CAN_DRAW_IN_TITLEBAR
<hbox class="titlebar-placeholder" type="caption-buttons"
@ -302,7 +302,7 @@
of tabmail is OK though). This will break Ctrl-tab switching because
the XBL binding will choke when it finds a child of tabmail that is
not a tabpanels node. -->
<tabmail id="tabmail" flex="1" panelcontainer="tabpanelcontainer" tabcontainer="tabcontainer">
<tabmail id="tabmail" flex="1" panelcontainer="tabpanelcontainer" tabcontainer="tabmail-tabs">
<tabpanels id="tabpanelcontainer" flex="1" class="plain" selectedIndex="0">
<!-- mailContent is the container used for the "wide" layout. Normally,

Просмотреть файл

@ -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/. */
.tabmail-tabs {
#tabmail-tabs {
-moz-binding: url("chrome://messenger/content/tabmail.xml#tabmail-tabs");
}
@ -46,17 +46,17 @@
display: none;
}
.tabmail-tabs > .tabmail-tab[first-tab] > .tab-stack > .tab-content >
#tabmail-tabs > .tabmail-tab[first-tab] > .tab-stack > .tab-content >
.tab-close-button {
visibility: collapse;
}
.tabmail-tabs:not([closebuttons="noclose"]):not([closebuttons="closeatend"]) >
#tabmail-tabs:not([closebuttons="noclose"]):not([closebuttons="closeatend"]) >
.tabmail-tab[selected="true"]:not(:only-child) > .tab-stack > .tab-content > .tab-close-button {
display: -moz-box;
}
.tabmail-tabs[closebuttons="alltabs"] > .tabmail-tab:not(:only-child) >
#tabmail-tabs[closebuttons="alltabs"] > .tabmail-tab:not(:only-child) >
.tab-stack > .tab-content > .tab-close-button {
display: -moz-box;
}

Просмотреть файл

@ -42,7 +42,7 @@ function test_open_context_menu() {
assert_not_equals(contextPopup.state, "open");
// Right click on the tab bar
mc.rightClick(mc.eid("tabcontainer"));
mc.rightClick(mc.eid("tabmail-tabs"));
// Ensure that the popup opened
wait_for_popup_to_open(contextPopup);
@ -58,7 +58,7 @@ function test_redirects_toolbarbutton_drops() {
// Restore the default buttons to get defined starting conditions.
gCDHelper.restoreDefaultButtons(mc);
let tabbar = mc.e("tabcontainer");
let tabbar = mc.e("tabmail-tabs");
let toolbar = mc.e("tabbar-toolbar");
// First, let's open up the customize toolbar window.

Просмотреть файл

@ -69,7 +69,7 @@
box-shadow: var(--focus-ring-box-shadow);
}
.tabmail-tabs {
#tabmail-tabs {
border: none;
-moz-box-pack: center;
-moz-box-align: center;

Просмотреть файл

@ -118,7 +118,7 @@
}
:root:not([tabsintitlebar]) .tab-background,
#mail-toolbar-menubar2[toolbarname]:not([autohide=true]) ~ #tabs-toolbar > .tabmail-tabs >
#mail-toolbar-menubar2[toolbarname]:not([autohide=true]) ~ #tabs-toolbar > #tabmail-tabs >
.tabmail-tab > .tab-stack > .tab-background {
border-top-style: solid;
}
@ -156,7 +156,7 @@
background-color: rgba(0,0,0,.1);
}
#tabs-toolbar[brighttext] > .tabmail-tabs > .tabmail-tab:hover > .tab-stack >
#tabs-toolbar[brighttext] > #tabmail-tabs > .tabmail-tab:hover > .tab-stack >
.tab-background:not([selected=true]) {
background-color: rgba(255,255,255,.1);
}
@ -174,7 +174,7 @@
transform: none;
}
#tabs-toolbar[brighttext] > .tabmail-tabs > .tabmail-tab:hover > .tab-stack >
#tabs-toolbar[brighttext] > #tabmail-tabs > .tabmail-tab:hover > .tab-stack >
.tab-background > .tab-line:not([selected=true]) {
background-color: rgba(255,255,255,.2);
}
@ -215,8 +215,8 @@
.tabmail-tab:not([selected=true]):last-child:hover::after,
.tabmail-tab:not([selected]) + .tabmail-tab:not([selected]):hover::before,
.tabmail-tab:not([selected]):hover + .tabmail-tab:not([selected])::before,
:root[tabsintitlebar] #mail-toolbar-menubar2[autohide=true] ~ #tabs-toolbar > .tabmail-tabs > .tabmail-tab::after,
:root[tabsintitlebar] #mail-toolbar-menubar2[autohide=true] ~ #tabs-toolbar > .tabmail-tabs > .tabmail-tab::before {
:root[tabsintitlebar] #mail-toolbar-menubar2[autohide=true] ~ #tabs-toolbar > #tabmail-tabs > .tabmail-tab::after,
:root[tabsintitlebar] #mail-toolbar-menubar2[autohide=true] ~ #tabs-toolbar > #tabmail-tabs > .tabmail-tab::before {
margin-top: var(--tabs-top-border-width);
margin-bottom: var(--tab-toolbar-overlap);
}

Просмотреть файл

@ -61,7 +61,7 @@
*/
@media (-moz-windows-classic) {
#messengerWindow[tabsintitlebar]:not([sizemode=fullscreen])
.tabmail-tabs:not(:-moz-lwtheme) {
#tabmail-tabs:not(:-moz-lwtheme) {
position: relative;
z-index: 2;
}