Backed out changeset 08d1470a4042 (bug 1112556) for mass test bustage.
authorRyan VanderMeulen <ryanvm@gmail.com>
Thu, 18 Dec 2014 15:52:57 -0500
changeset 246211 803bc910c45a875d9d76dc689c45dd91a1e02e23
parent 246210 e4c72ee3f315780df3829871ee039cfacf707373
child 246212 9acb15a52030764ee4dca78905995f6b9edecd15
child 246260 ee4fe2ec168e719e822dabcdd797c0cff9ce2407
push id4489
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 15:17:55 +0000
treeherdermozilla-beta@fd7c3dc24146 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1112556
milestone37.0a1
backs out08d1470a4042964793d541dd3fc0a0264fec60ec
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
Backed out changeset 08d1470a4042 (bug 1112556) for mass test bustage. CLOSED TREE
browser/base/content/browser-ctrlTab.js
--- a/browser/base/content/browser-ctrlTab.js
+++ b/browser/base/content/browser-ctrlTab.js
@@ -156,45 +156,35 @@ var ctrlTab = {
   get showAllButton () {
     delete this.showAllButton;
     return this.showAllButton = document.getElementById("ctrlTab-showAll");
   },
   get previews () {
     delete this.previews;
     return this.previews = this.panel.getElementsByClassName("ctrlTab-preview");
   },
-  get maxTabPreviews () {
-    delete this.maxTabPreviews;
-    return this.maxTabPreviews = this.previews.length - 1;
-  },
-  get canvasWidth () {
-    delete this.canvasWidth;
-    return this.canvasWidth = Math.ceil(screen.availWidth * .85 / this.maxTabPreviews);
-  },
-  get canvasHeight () {
-    delete this.canvasHeight;
-    return this.canvasHeight = Math.round(this.canvasWidth * tabPreviews.aspectRatio);
-  },
   get keys () {
     var keys = {};
     ["close", "find", "selectAll"].forEach(function (key) {
       keys[key] = document.getElementById("key_" + key)
                           .getAttribute("key")
                           .toLocaleLowerCase().charCodeAt(0);
     });
     delete this.keys;
     return this.keys = keys;
   },
   _selectedIndex: 0,
   get selected () this._selectedIndex < 0 ?
                     document.activeElement :
                     this.previews.item(this._selectedIndex),
   get isOpen   () this.panel.state == "open" || this.panel.state == "showing" || this._timer,
   get tabCount () this.tabList.length,
-  get tabPreviewCount () Math.min(this.maxTabPreviews, this.tabCount),
+  get tabPreviewCount () Math.min(this.previews.length - 1, this.tabCount),
+  get canvasWidth () Math.ceil(screen.availWidth * .85 / this.tabPreviewCount),
+  get canvasHeight () Math.round(this.canvasWidth * tabPreviews.aspectRatio),
 
   get tabList () {
     return this._recentlyUsedTabs;
   },
 
   init: function ctrlTab_init() {
     if (!this._recentlyUsedTabs) {
       tabPreviews.init();