diff --git a/xpfe/global/resources/content/treeBindings.xml b/xpfe/global/resources/content/treeBindings.xml
index 1145c8f06348..dcc6a207a663 100644
--- a/xpfe/global/resources/content/treeBindings.xml
+++ b/xpfe/global/resources/content/treeBindings.xml
@@ -6,12 +6,107 @@
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
-
+
+
+
+
+
+
+
+ return this.treeBoxObject.getNextItem(startItem, delta);
+
+
+
+
+
+
+ return this.treeBoxObject.getPreviousItem(startItem, delta);
+
+
+
+
+
+ return this.treeBoxObject.getIndexOfItem(item);
+
+
+
+
+
+ return this.treeBoxObject.getItemAtIndex(index);
+
+
+
+
+
+ return this.treeBoxObject.ensureIndexIsVisible(index);
+
+
+
+
+
+ return this.treeBoxObject.scrollToIndex(index);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -30,12 +125,7 @@
@@ -43,18 +133,52 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/xpfe/global/resources/content/xul.css b/xpfe/global/resources/content/xul.css
index fd9d10607a99..40d6a3934f18 100644
--- a/xpfe/global/resources/content/xul.css
+++ b/xpfe/global/resources/content/xul.css
@@ -208,13 +208,8 @@ tree {
height: 200px;
min-width: 0px;
min-height: 0px;
-}
-
-/*
-tree {
behavior: url("chrome://global/content/treeBindings.xml#tree");
}
-*/
tree > treechildren {
behavior: url("chrome://global/content/treeBindings.xml#treerows");
@@ -222,6 +217,7 @@ tree > treechildren {
treeitem {
display: table-row-group;
+ behavior: url("chrome://global/content/treeBindings.xml#treeitem");
}
treerow {