B2G/gecko/browser/components/places/content/sidebarUtils.js
/**
   * The following function displays the URL of a node that is being
   * hovered over.
   */
The following function displays the URL of a node that is being
hovered over.
The following function displays the URL of a node that is being hovered over .
function SU_handleTreeMouseMove(aEvent) {
    if (aEvent.target.localName != "treechildren")
      return;
    var tree = aEvent.target.parentNode;
    var tbo = tree.treeBoxObject;
    var row = { }, col = { }, obj = { };
    tbo.getCellAt(aEvent.clientX, aEvent.clientY, row, col, obj);
    if (row.value != -1) {
      var node = tree.view.nodeForTreeIndex(row.value);
      if (PlacesUtils.nodeIsURI(node))
        this.setMouseoverURL(node.uri);
      else
        this.setMouseoverURL("");
    }
    else
      this.setMouseoverURL("");
  }
function SU_handleTreeMouseMove ( aEvent ) { if ( aEvent . target . localName != "treechildren" ) return ; var tree = aEvent . target . parentNode ; var tbo = tree . treeBoxObject ; var row = { } , col = { } , obj = { } ; tbo . getCellAt ( aEvent . clientX , aEvent . clientY , row , col , obj ) ; if ( row . value != - 1 ) { var node = tree . view . nodeForTreeIndex ( row . value ) ; if ( PlacesUtils . nodeIsURI ( node ) ) this . setMouseoverURL ( node . uri ) ; else this . setMouseoverURL ( "" ) ; } else this . setMouseoverURL ( "" ) ; }
The following function displays the URL of a node that is being
 hovered over.
The following function displays the URL of a node that is being hovered over .
// row.value is -1 when the mouse is hovering an empty area within the tree. // To avoid showing a URL from a previously hovered node for a currently // hovered non-url node, we must clear the moused-over URL in these cases.