Bug 668760 - Optimize historylist's and remotetabslist's CSS [r=mbrubeck]
authorLucas Rocha <lucasr@mozilla.com>
Tue, 23 Aug 2011 09:15:18 -0700
changeset 77059 35413f020d21cc78b0db8859decfc27434434272
parent 77058 cdbac24d57d944512c5e1138a940148b5ecffc14
child 77060 ac0b1fc28e3de2cd460976f239e828aee0d39976
push id78
push userclegnitto@mozilla.com
push dateFri, 16 Dec 2011 17:32:24 +0000
treeherdermozilla-release@79d24e644fdd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmbrubeck
bugs668760
milestone9.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 668760 - Optimize historylist's and remotetabslist's CSS [r=mbrubeck] Remove unnecessary child selectors, remote explicit tag names from classes, and take advantage of inheritance.
mobile/themes/core/browser.css
--- a/mobile/themes/core/browser.css
+++ b/mobile/themes/core/browser.css
@@ -415,34 +415,30 @@ toolbarbutton.choice-history {
   list-style-image: url(chrome://browser/skin/images/history-48.png);
 }
 
 toolbarbutton.choice-remotetabs {
   list-style-image: url(chrome://browser/skin/images/remotetabs-48.png);
 }
 
 /* awesomescreen panels ---------------------------------------------------- */
-historylist > hbox.history-throbber-box,
-remotetabslist > hbox.remotetabs-throbber-box {
+.history-throbber-box,
+.remotetabs-throbber-box {
+  list-style-image: url("chrome://browser/skin/images/throbber.png");
   display: none;
 }
 
-.history-throbber-box > image,
-.remotetabs-throbber-box > image {
-  list-style-image: url("chrome://browser/skin/images/throbber.png");
-}
-
-historylist[loading="true"] > hbox.history-throbber-box,
-remotetabslist[loading="true"] > hbox.remotetabs-throbber-box {
+historylist[loading="true"] > .history-throbber-box,
+remotetabslist[loading="true"] > .remotetabs-throbber-box {
   background-color: white;
   display: -moz-box;
 }
 
-historylist[loading="true"] > richlistbox.history-list-children,
-remotetabslist[loading="true"] > richlistbox.remotetabs-list-children {
+historylist[loading="true"] > .history-list-children,
+remotetabslist[loading="true"] > .remotetabs-list-children {
   visibility: collapse;
 }
 
 /* browsers ---------------------------------------------------------------- */
 .input-overlay:-moz-focusring {
   outline: 0 !important;
 }