diff --git a/browser/base/content/tabbrowser.xml b/browser/base/content/tabbrowser.xml index a5232f5a6432..63a49afe1b85 100644 --- a/browser/base/content/tabbrowser.xml +++ b/browser/base/content/tabbrowser.xml @@ -2868,7 +2868,6 @@ // update the UI early for responsiveness aTab.collapsed = true; - this.tabContainer._fillTrailingGap(); this._blurTab(aTab); this._removingTabs.splice(this._removingTabs.indexOf(aTab), 1); @@ -6028,21 +6027,6 @@ ]]> - - - tabStrip.scrollSize) - tabStrip.scrollByPixels(-1); - } catch (e) {} - ]]> - - document.getAnonymousElementByAttribute(this, "anonid", "closing-tabs-spacer"); @@ -6332,7 +6316,6 @@ var width = this.mTabstrip.boxObject.width; if (width != this.mTabstripWidth) { this.adjustTabstrip(); - this._fillTrailingGap(); this._handleTabSelect(false); this.mTabstripWidth = width; } @@ -6487,7 +6470,6 @@ this.adjustTabstrip(); if (tab.getAttribute("selected") == "true") { - this._fillTrailingGap(); this._handleTabSelect(); } else if (!tab.hasAttribute("skipbackgroundnotify")) { this._notifyBackgroundTab(tab); diff --git a/browser/base/content/test/general/browser_tabopen_reflows.js b/browser/base/content/test/general/browser_tabopen_reflows.js index 2adc18eac313..e3bdf4e1bf89 100644 --- a/browser/base/content/test/general/browser_tabopen_reflows.js +++ b/browser/base/content/test/general/browser_tabopen_reflows.js @@ -23,18 +23,6 @@ const EXPECTED_REFLOWS = [ "openUILinkIn@chrome://browser/content/utilityOverlay.js|" + "BrowserOpenTab@chrome://browser/content/browser.js|", - // accessing element.scrollPosition in _fillTrailingGap() flushes layout - "get_scrollPosition@chrome://global/content/bindings/scrollbox.xml|" + - "_fillTrailingGap@chrome://browser/content/tabbrowser.xml|" + - "_handleNewTab@chrome://browser/content/tabbrowser.xml|" + - "onxbltransitionend@chrome://browser/content/tabbrowser.xml|", - - // SessionStore.getWindowDimensions() - "ssi_getWindowDimension@resource:///modules/sessionstore/SessionStore.jsm|" + - "ssi_updateWindowFeatures/<@resource:///modules/sessionstore/SessionStore.jsm|" + - "ssi_updateWindowFeatures@resource:///modules/sessionstore/SessionStore.jsm|" + - "ssi_collectWindowData@resource:///modules/sessionstore/SessionStore.jsm|", - // selection change notification may cause querying the focused editor content // by IME and that will cause reflow. "select@chrome://global/content/bindings/textbox.xml|" + diff --git a/devtools/client/responsive.html/docs/browser-swap.md b/devtools/client/responsive.html/docs/browser-swap.md index 4b405c4a74ed..468491d557bc 100644 --- a/devtools/client/responsive.html/docs/browser-swap.md +++ b/devtools/client/responsive.html/docs/browser-swap.md @@ -54,7 +54,6 @@ involved: * `filter.addProgressListener` * `ourBrowser.webProgress.addProgressListener` * `gBrowser._endRemoveTab` - * `gBrowser.tabContainer._fillTrailingGap` * `gBrowser._blurTab` * `gBrowser._tabFilters.delete` * `gBrowser._tabListeners.delete`