Bug 1165360 - Force 1x icon for back button and forward button icons in Dev Edition theme. r=MattN, a=sledru
authorBrian Grinstead <bgrinstead@mozilla.com>
Fri, 15 May 2015 16:49:04 -0700
changeset 274645 f8c8d7ef332150473dbe351111a7050308400687
parent 274644 8c02c3f9171f851643b820e9e1ac2e59d5d2afac
child 274646 ee7ff30474fdc18a174a1ba01e3268deb3b65b78
push id863
push userraliiev@mozilla.com
push dateMon, 03 Aug 2015 13:22:43 +0000
treeherdermozilla-release@f6321b14228d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMattN, sledru
bugs1165360
milestone40.0a2
Bug 1165360 - Force 1x icon for back button and forward button icons in Dev Edition theme. r=MattN, a=sledru
browser/themes/windows/devedition.css
--- a/browser/themes/windows/devedition.css
+++ b/browser/themes/windows/devedition.css
@@ -21,16 +21,30 @@
   width: auto !important;
   height: auto !important;
   padding: 2px 5px !important;
   margin: 0 !important;
   border: 1px solid var(--chrome-nav-bar-controls-border-color) !important;
   box-shadow: none !important;
 }
 
+
+/* Force 1x image for back/forward button for now, otherwise it breaks the
+   layout - Bug 1165360. */
+@media (min-resolution: 1.1dppx) {
+  #back-button,
+  #forward-button {
+    list-style-image: url("chrome://browser/skin/Toolbar.png");
+  }
+  /* The back button region is already set in devedition.inc.css */
+  #forward-button {
+    -moz-image-region: rect(0px, 72px, 18px, 54px);
+  }
+}
+
 #forward-button > .toolbarbutton-icon {
   -moz-border-start: none !important;
 }
 
 /* Override a box shadow for disabled back button */
 #main-window:not([customizing]) #back-button[disabled] > .toolbarbutton-icon {
   box-shadow: none !important;
 }