Bug 1330303 - Remove body:not(.compact) from selectors to undo dragging performance regression. r=gijs a=gchang
authorDão Gottwald <dao@mozilla.com>
Wed, 11 Jan 2017 17:53:28 +0100
changeset 359363 7d6605552545628e8a99882802f7d7695a64290c
parent 359362 188c8d2342ffc6340f5589be3175225d73e26b01
child 359364 0688f0bd4f534fd3f6d6cae3006c21966fd340bc
push id1324
push usermtabara@mozilla.com
push dateMon, 16 Jan 2017 13:07:44 +0000
treeherdermozilla-release@a01c49833940 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgijs, gchang
bugs1330303
milestone51.0
Bug 1330303 - Remove body:not(.compact) from selectors to undo dragging performance regression. r=gijs a=gchang
browser/themes/shared/newtab/newTab.inc.css
--- a/browser/themes/shared/newtab/newTab.inc.css
+++ b/browser/themes/shared/newtab/newTab.inc.css
@@ -112,26 +112,26 @@ body.compact .newtab-cell {
 
 .newtab-cell:empty {
   outline: 2px dashed #c1c1c1;
   outline-offset: -2px;
   -moz-outline-radius: var(--cell-corner-radius);
 }
 
 /* SITES */
-body:not(.compact) .newtab-site {
+.newtab-site {
   border-radius: var(--cell-corner-radius);
   box-shadow: 0 1px 3px #c1c1c1;
   text-decoration: none;
   transition-property: top, left, opacity, box-shadow, background-color;
 }
 
-body:not(.compact) .newtab-cell:not([ignorehover]) .newtab-control:hover ~ .newtab-link,
-body:not(.compact) .newtab-cell:not([ignorehover]) .newtab-link:hover,
-body:not(.compact) .newtab-site[dragged] {
+.newtab-cell:not([ignorehover]) .newtab-control:hover ~ .newtab-link,
+.newtab-cell:not([ignorehover]) .newtab-link:hover,
+.newtab-site[dragged] {
   border: 2px solid white;
   box-shadow: 0 0 6px 1px #add6ff;
   margin: -2px;
 }
 
 .newtab-site[dragged] {
   transition-property: box-shadow, background-color;
   background-color: rgb(242,242,242);