[Pkg-mozext-commits] [adblock-plus-element-hiding-helper] 174/483: Removed code required for Firefox 2.0 support (no horizontal scrolling for trees there)

David Prévot taffit at moszumanska.debian.org
Thu Jan 22 21:41:38 UTC 2015


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

taffit pushed a commit to branch master
in repository adblock-plus-element-hiding-helper.

commit f91524c60bb95c76b4aabc337dd1861cd5769a56
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Mon Aug 3 08:15:57 2009 +0200

    Removed code required for Firefox 2.0 support (no horizontal scrolling for trees there)
---
 chrome/content/composer.js | 26 --------------------------
 1 file changed, 26 deletions(-)

diff --git a/chrome/content/composer.js b/chrome/content/composer.js
index b485668..158c118 100644
--- a/chrome/content/composer.js
+++ b/chrome/content/composer.js
@@ -150,32 +150,6 @@ function init() {
   doc = element.ownerDocument;
   var wnd = doc.defaultView;
 
-  var geckoVersion = "0.0";
-  if ("nsIXULAppInfo" in  Components.interfaces)
-      geckoVersion = Components.classes["@mozilla.org/xre/app-info;1"].getService(Components.interfaces.nsIXULAppInfo).platformVersion;
-  var versionComparator = Components.classes["@mozilla.org/xpcom/version-comparator;1"]
-                                    .createInstance(Components.interfaces.nsIVersionComparator);
-  if (versionComparator.compare(geckoVersion, "1.9") < 0)
-  {
-    // Gecko 1.8 does not support horizontal scrolling for trees,
-    // change width attribute into flex for tree columns.
-    var nodeCol = document.getElementById("nodes-tree-node");
-    nodeCol.setAttribute("flex", "2");
-    nodeCol.nextSibling.removeAttribute("resizeafter");
-
-    var idCol = document.getElementById("nodes-tree-id");
-    idCol.setAttribute("flex", "1");
-    if (!idCol.hasAttribute("hidden"))
-      idCol.setAttribute("hidden", "true");
-    idCol.nextSibling.removeAttribute("resizeafter");
-
-    var classCol = document.getElementById("nodes-tree-class");
-    classCol.setAttribute("flex", "1");
-    if (!classCol.hasAttribute("hidden"))
-      classCol.setAttribute("hidden", "true");
-    classCol.parentNode.removeChild(classCol.nextSibling);
-  }
-
   nodeData = new NodeData(element);
   nodeData.tagName.checked = true;
   if (nodeData.attributes.length > 0) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus-element-hiding-helper.git



More information about the Pkg-mozext-commits mailing list