Bug 1000051 - Fix hidpi close icon size. r=dao, a=lsblakk
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Mon, 12 May 2014 16:57:43 +0100
changeset 199190 7fef39b96efd0def6f1983050bf50f5fc755d0b0
parent 199189 b261b1657477ab8954896dd35f2c0bb000d14fad
child 199191 94e7706de176534ae4899a66352bf2a8ab55a02b
push id3624
push userasasaki@mozilla.com
push dateMon, 09 Jun 2014 21:49:01 +0000
treeherdermozilla-beta@b1a5da15899a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao, lsblakk
bugs1000051
milestone31.0a2
Bug 1000051 - Fix hidpi close icon size. r=dao, a=lsblakk
browser/themes/osx/browser.css
toolkit/themes/osx/global/global.css
--- a/browser/themes/osx/browser.css
+++ b/browser/themes/osx/browser.css
@@ -2887,20 +2887,16 @@ toolbarbutton.chevron > .toolbarbutton-m
   cursor: default;
 }
 
 .tab-close-button.close-icon:not([selected=true]):not(:hover):-moz-lwtheme-brighttext {
   -moz-image-region: rect(0, 64px, 16px, 48px);
 }
 
 @media (min-resolution: 2dppx) {
-  .tab-close-button > .toolbarbutton-icon {
-    width: 16px;
-  }
-
   .tab-close-button.close-icon:not([selected=true]):not(:hover):-moz-lwtheme-brighttext {
     -moz-image-region: rect(0, 128px, 32px, 96px);
   }
 }
 
 .tabbrowser-arrowscrollbox > .scrollbutton-up,
 .tabbrowser-arrowscrollbox > .scrollbutton-down {
   -moz-image-region: rect(0, 13px, 20px, 0);
@@ -4326,20 +4322,16 @@ window > chatbox {
   #customization-titlebar-visibility-button[checked] {
     -moz-image-region: rect(0, 96px, 48px, 48px);
   }
 
   #customization-titlebar-visibility-button > .button-box > .button-icon {
     width: 24px;
   }
 
-  .customization-tipPanel-closeBox > .close-icon > .toolbarbutton-icon {
-    width: 16px;
-  }
-
   .customization-tipPanel-infoBox {
     background-image: url(chrome://browser/skin/customizableui/info-icon-customizeTip@2x.png);
     background-size: 25px 25px;
   }
 
   .customization-tipPanel-contentImage {
     list-style-image: url(chrome://browser/skin/customizableui/customize-illustration@2x.png);
   }
--- a/toolkit/themes/osx/global/global.css
+++ b/toolkit/themes/osx/global/global.css
@@ -347,16 +347,21 @@ notification > button > .button-box > .b
   -moz-image-region: rect(0, 32px, 16px, 16px);
 }
 
 .close-icon:hover:active {
   -moz-image-region: rect(0, 48px, 16px, 32px);
 }
 
 @media (min-resolution: 2dppx) {
+  .close-icon > .button-icon,
+  .close-icon > .toolbarbutton-icon {
+    width: 16px;
+  }
+
   .close-icon {
     list-style-image: url("chrome://global/skin/icons/close@2x.png");
     -moz-image-region: rect(0, 32px, 32px, 0);
   }
 
   .close-icon:hover {
     -moz-image-region: rect(0, 64px, 32px, 32px);
   }