[Pkg-mozext-commits] [tabmixplus] 07/61: Wrong value calculated for '-moz-margin-start' and '-moz-margin-end' on Firefox 39 when selected tab is not visualyselected, regressed by bug 1066531

David Prévot taffit at moszumanska.debian.org
Fri Aug 28 19:09:16 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository tabmixplus.

commit b2c936f81ac4380519abbe5df474224c320b81b1
Author: onemen <tabmix.onemen at gmail.com>
Date:   Fri Jul 10 13:38:06 2015 +0300

    Wrong value calculated for '-moz-margin-start' and '-moz-margin-end' on Firefox 39 when selected tab is not visualyselected, regressed by bug 1066531
---
 chrome/content/tab/tab.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/chrome/content/tab/tab.js b/chrome/content/tab/tab.js
index 4b3567f..0ac74e7 100644
--- a/chrome/content/tab/tab.js
+++ b/chrome/content/tab/tab.js
@@ -1715,7 +1715,9 @@ var gTMPprefObserver = {
 
     // Workaround bug 943308 - tab-background not fully overlap the tab curves
     // when layout.css.devPixelsPerPx is not 1.
-    let bgMiddle = document.getAnonymousElementByAttribute(gBrowser.selectedTab, "class", "tab-background-middle");
+    let selectedTab = Tabmix.isVersion(390) && gBrowser._switcher ?
+        gBrowser._switcher.visibleTab : gBrowser.selectedTab;
+    let bgMiddle = document.getAnonymousElementByAttribute(selectedTab, "class", "tab-background-middle");
     let margin = (-parseFloat(window.getComputedStyle(bgMiddle).borderLeftWidth)) + "px";
     let bgMiddleMargin = this.dynamicRules["bgMiddleMargin"];
     if (bgMiddleMargin) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git



More information about the Pkg-mozext-commits mailing list