updated for changes by Bug 544818 - Progress "Line" indicator for loading tabs ( https://bugzilla.mozilla.org/show_bug.cgi?id=544818 )

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@7255 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2010-09-17 15:30:09 +00:00
parent 4bfee29a38
commit 8877dd44ee
3 changed files with 15 additions and 10 deletions

View File

@ -14,46 +14,46 @@
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
:root[tabFx2Compatible="9"] :root[tabFx2Compatible="10"]
.tabbrowser-tab { .tabbrowser-tab {
-moz-binding: url(tabFx2Compatible.xml#tabbrowser-tab-3) !important; -moz-binding: url(tabFx2Compatible.xml#tabbrowser-tab-3) !important;
} }
:root[tabFx2Compatible="9"][tabFx2Compatible-flags~="separate-tabContextMenu"] :root[tabFx2Compatible="10"][tabFx2Compatible-flags~="separate-tabContextMenu"]
.tabbrowser-tab { .tabbrowser-tab {
-moz-binding: url(tabFx2Compatible.xml#tabbrowser-tab-4) !important; -moz-binding: url(tabFx2Compatible.xml#tabbrowser-tab-4) !important;
} }
:root[tabFx2Compatible="9"]:not([tabFx2Compatible-flags~="png-throbber"]):not([tabFx2Compatible-flags~="pie"]) :root[tabFx2Compatible="10"]:not([tabFx2Compatible-flags~="png-throbber"]):not([tabFx2Compatible-flags~="pie"])
.tab-icon-image[busy] { .tab-icon-image[busy] {
list-style-image: url("chrome://global/skin/throbber/Throbber-small.gif") !important; list-style-image: url("chrome://global/skin/throbber/Throbber-small.gif") !important;
opacity: 0.6; opacity: 0.6;
} }
:root[tabFx2Compatible="9"][tabFx2Compatible-flags~="png-throbber"]:not([tabFx2Compatible-flags~="pie"]) :root[tabFx2Compatible="10"][tabFx2Compatible-flags~="png-throbber"]:not([tabFx2Compatible-flags~="pie"])
.tab-icon-image[busy] { .tab-icon-image[busy] {
list-style-image: url("chrome://global/skin/icons/loading_16.png") !important; list-style-image: url("chrome://global/skin/icons/loading_16.png") !important;
} }
:root[tabFx2Compatible="9"][tabFx2Compatible-flags~="mac"][tabFx2Compatible-flags~="png-throbber"] :root[tabFx2Compatible="10"][tabFx2Compatible-flags~="mac"][tabFx2Compatible-flags~="png-throbber"]
.tab-icon-image { .tab-icon-image {
list-style-image: url("chrome://global/skin/tree/item.png"); list-style-image: url("chrome://global/skin/tree/item.png");
} }
:root[tabFx2Compatible="9"][tabFx2Compatible-flags~="mac"] :root[tabFx2Compatible="10"][tabFx2Compatible-flags~="mac"]
.tabbrowser-tab:not(:hover) .tab-icon-image:not([selected="true"]) { .tabbrowser-tab:not(:hover) .tab-icon-image:not([selected="true"]) {
opacity: 0.6; opacity: 0.6;
} }
:root[tabFx2Compatible="9"] :root[tabFx2Compatible="10"]
.tabbrowser-tab:focus > .tab-stack { .tabbrowser-tab:focus > .tab-stack {
border: 1px dotted -moz-DialogText; border: 1px dotted -moz-DialogText;
} }
:root[tabFx2Compatible="9"] :root[tabFx2Compatible="10"]
.tab-image-left[pinned="true"], .tab-image-left[pinned="true"],
:root[tabFx2Compatible="9"] :root[tabFx2Compatible="10"]
.tab-image-right[pinned="true"] { .tab-image-right[pinned="true"] {
display: none !important; display: none !important;
} }

View File

@ -61,6 +61,11 @@
<content context="tabContextMenu" <content context="tabContextMenu"
closetabtext="&closeTab.label;"> closetabtext="&closeTab.label;">
<xul:stack class="tab-stack" flex="1"> <xul:stack class="tab-stack" flex="1">
<xul:vbox class="tab-progress-container">
<xul:progressmeter xbl:inherits="value=progresspercent,busy,stalled,fadein,selected"
class="tab-progress"
mode="normal"/>
</xul:vbox>
<xul:hbox class="tab-content" align="center"> <xul:hbox class="tab-content" align="center">
<xul:hbox xbl:inherits="fadein,pinned,selected" <xul:hbox xbl:inherits="fadein,pinned,selected"
class="tab-image-left"/> class="tab-image-left"/>

View File

@ -19,7 +19,7 @@
window.addEventListener('DOMContentLoaded', function() { window.addEventListener('DOMContentLoaded', function() {
window.removeEventListener('DOMContentLoaded', arguments.callee, true); window.removeEventListener('DOMContentLoaded', arguments.callee, true);
const currentRevision = 9; const currentRevision = 10;
var b = document.getElementById('content'); var b = document.getElementById('content');
if (!b || b.localName != 'tabbrowser') return; if (!b || b.localName != 'tabbrowser') return;