Bug 1452629 - Part 5 - Remove the "downloadDetailsFull" description element. r=mak

Differential Revision: https://phabricator.services.mozilla.com/D4461

--HG--
extra : rebase_source : cd5065468e1b8405c26e4935292084a2dd59af61
This commit is contained in:
Paolo Amadini 2018-08-28 16:53:04 +01:00
Родитель 7a497b003a
Коммит 1044705311
4 изменённых файлов: 8 добавлений и 18 удалений

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

@ -332,9 +332,13 @@ this.DownloadsViewUI.DownloadElementShell.prototype = {
}
let labels = this.statusLabels;
this.element.setAttribute("status", labels.status);
this.element.setAttribute("hoverStatus", labels.hoverStatus);
this.element.setAttribute("fullStatus", labels.fullStatus);
if (this.isPanel) {
this.element.setAttribute("status", labels.status);
this.element.setAttribute("hoverStatus", labels.hoverStatus);
} else {
this.element.setAttribute("status", labels.fullStatus);
this.element.setAttribute("fullStatus", labels.fullStatus);
}
},
lastEstimatedSecondsLeft: Infinity,

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

@ -48,13 +48,10 @@
xbl:inherits="mode=progressmode,value=progress,paused=progresspaused"/>
<xul:description class="downloadDetails downloadDetailsNormal"
crop="end"
xbl:inherits="value=status"/>
xbl:inherits="value=status,tooltiptext=fullStatus"/>
<xul:description class="downloadDetails downloadDetailsHover"
crop="end"
xbl:inherits="value=hoverStatus"/>
<xul:description class="downloadDetails downloadDetailsFull"
crop="end"
xbl:inherits="value=fullStatus,tooltiptext=fullStatus"/>
<xul:description class="downloadDetails downloadDetailsButtonHover"
crop="end"
xbl:inherits="value=buttonHoverStatus"/>

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

@ -60,7 +60,6 @@
margin: 4px 0 calc(1em / 0.95 - 1em);
}
.downloadDetailsNormal,
.downloadDetailsHover,
.downloadDetailsButtonHover {
display: none;

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

@ -182,16 +182,6 @@
margin: 4px 0 calc(1em / var(--downloads-item-font-size-factor) - 1em);
}
/* The following rules control which message is shown under the name of the
download, using a set of elements that share the class ".downloadDetails".
At any given time, only one of these elements is displayed. We use a set of
rules to hide the elements that shouldn't be displayed in each case. */
/* The full status message is only displayed in the Downloads View. */
.downloadDetailsFull {
display: none;
}
/* When hovering the mouse pointer over the item, instead of the normal message
we display a more detailed one. */
@item@:hover > .downloadMainArea > .downloadContainer > .downloadDetailsNormal,