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 75748 35413f020d21cc78b0db8859decfc27434434272
parent 75747 cdbac24d57d944512c5e1138a940148b5ecffc14
child 75749 ac0b1fc28e3de2cd460976f239e828aee0d39976
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
reviewersmbrubeck
bugs668760
milestone9.0a1
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;
 }