rem: if (i == 0) bx.ensureRowIsVisible(index); 
add: } lastIndex = index; 
context:   selectElementInOutliner: function(aEl, aExpand)  {    // Keep searching until a pre-created ancestor is    // found, and then open each ancestor until    // the found element is created    var walker = this.createDOMWalker(aEl);    var line = [];    var parent = aEl;    var index = null;    while (parent) {      index = this.getRowIndexFromNode(parent);      line.push(parent);      if (index < 0) {         // row for this node hasn't been created yet        parent = walker.parentNode();      } else        break;    }     var bx = this.mDOMOutliner.boxObject.QueryInterface(Components.interfaces.nsIOutlinerBoxObject);    var view = bx.view;    // we've got all the ancestors, now open them     // one-by-one from the top on down    for (var i = line.length-1; i >= 0; i--) {      index = this.getRowIndexFromNode(line[i]);      if (index < 0) return false; // can't find row, so stop trying to descend      if ((aExpand || i > 0) && !view.isContainerOpen(index))        view.toggleOpenState(index);      if (i == 0)        bx.ensureRowIsVisible(index);        }    bx.selection.select(index);  },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/732dc6261a2ac11c9af2f33803020c5eb226df56/dom.js/buggy/extensions/inspector/resources/content/viewers/dom/dom.js