Bug 616641 - Start/end caps of the download-progress binding broken on Windows/OSX with undetermined mode. r=dtownsend, a=blocking-final

This commit is contained in:
Blair McBride 2010-12-07 13:28:49 +13:00
parent 81ac2ab66c
commit 2161882ac2
4 changed files with 25 additions and 4 deletions

View File

@ -75,7 +75,7 @@ xhtml|link {
-moz-binding: url("chrome://mozapps/content/extensions/extensions.xml#rating");
}
.download-progress {
.download-progress, .download-progress[mode="undetermined"] {
-moz-binding: url("chrome://mozapps/content/extensions/extensions.xml#download-progress");
}

View File

@ -218,10 +218,11 @@
<setter><![CDATA[
if (val == -1) {
this._progress.mode = "undetermined";
return;
} else {
this._progress.mode = "determined";
this._progress.max = val;
}
this._progress.mode = "determined";
this._progress.max = val;
this.setAttribute("mode", this._progress.mode);
]]></setter>
</property>

View File

@ -837,10 +837,21 @@
margin: 0 8px;
}
.download-progress[mode="undetermined"] .progress {
-moz-binding: url("chrome://global/content/bindings/progressmeter.xml#progressmeter-undetermined");
}
.download-progress[mode="undetermined"] {
border-color: #2E773A;
}
.download-progress[mode="undetermined"] .status-container {
padding: 0 2px;
}
.download-progress .start-cap,
.download-progress[complete] .end-cap,
.download-progress[mode="undetermined"] .end-cap,
.download-progress .progress .progress-bar {
-moz-appearance: none;
background-image: -moz-linear-gradient(#6AC47E, #4FAC6A);
@ -862,6 +873,7 @@
.download-progress .progress .progress-bar {
border-left-width: 0;
border-right-width: 0;
min-height: 21px;
}
.download-progress .progress {

View File

@ -910,10 +910,17 @@
margin: 0 8px;
}
.download-progress[mode="undetermined"] {
border-color: #358942 #317F3D #2E773A;
}
.download-progress[mode="undetermined"] .status-container {
padding: 0 2px;
}
.download-progress .start-cap,
.download-progress[complete] .end-cap,
.download-progress[mode="undetermined"] .end-cap,
.download-progress .progress .progress-bar {
-moz-appearance: none;
background-image: -moz-linear-gradient(#71CA83, #54B06C 49%, #43A05D 51%, #60BB76);
@ -936,6 +943,7 @@
.download-progress .progress .progress-bar {
border-left-width: 0;
border-right-width: 0;
min-height: 21px;
}
.download-progress .progress {