browser/components/downloads/content/allDownloadsViewOverlay.css

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
michael@0 3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 /**
michael@0 6 * The downloads richlistbox may list thousands of items, and it turns out
michael@0 7 * XBL binding attachment, and even more so detachment, is a performance hog.
michael@0 8 * This hack makes sure we don't apply any binding to inactive items (inactive
michael@0 9 * items are history downloads that haven't been in the visible area).
michael@0 10 * We can do this because the richlistbox implementation does not interact
michael@0 11 * much with the richlistitem binding. However, this may turn out to have
michael@0 12 * some side effects (see bug 828111 for the details).
michael@0 13 *
michael@0 14 * We might be able to do away with this workaround once bug 653881 is fixed.
michael@0 15 */
michael@0 16 richlistitem.download {
michael@0 17 -moz-binding: none;
michael@0 18 }
michael@0 19
michael@0 20 richlistitem.download[active] {
michael@0 21 -moz-binding: url('chrome://browser/content/downloads/download.xml#download-full-ui');
michael@0 22 }
michael@0 23
michael@0 24 .download-state:not( [state="0"] /* Downloading */)
michael@0 25 .downloadPauseMenuItem,
michael@0 26 .download-state:not( [state="4"] /* Paused */)
michael@0 27 .downloadResumeMenuItem,
michael@0 28 .download-state:not(:-moz-any([state="2"], /* Failed */
michael@0 29 [state="4"]) /* Paused */)
michael@0 30 .downloadCancelMenuItem,
michael@0 31 .download-state[state]:not(:-moz-any([state="1"], /* Finished */
michael@0 32 [state="2"], /* Failed */
michael@0 33 [state="3"], /* Canceled */
michael@0 34 [state="6"], /* Blocked (parental) */
michael@0 35 [state="8"], /* Blocked (dirty) */
michael@0 36 [state="9"]) /* Blocked (policy) */)
michael@0 37 .downloadRemoveFromHistoryMenuItem,
michael@0 38 .download-state:not(:-moz-any([state="-1"],/* Starting (initial) */
michael@0 39 [state="0"], /* Downloading */
michael@0 40 [state="1"], /* Finished */
michael@0 41 [state="4"], /* Paused */
michael@0 42 [state="5"]) /* Starting (queued) */)
michael@0 43 .downloadShowMenuItem,
michael@0 44 .download-state[state="7"] .downloadCommandsSeparator
michael@0 45 {
michael@0 46 display: none;
michael@0 47 }

mercurial