B2G/gecko/browser/devtools/highlighter/highlighter.jsm
/**
   * Show the outline, and select a node.
   * If no node is specified, the previous selected node is highlighted if any.
   * If no node was selected, the root element is selected.
   *
   * @param aNode [optional] - The node to be selected.
   * @param aScroll [optional] boolean
   *        Should we scroll to ensure that the selected node is visible.
   */
Show the outline, and select a node.
If no node is specified, the previous selected node is highlighted if any.
If no node was selected, the root element is selected.

@param aNode [optional] - The node to be selected.
@param aScroll [optional] boolean
Should we scroll to ensure that the selected node is visible.
Show the outline and select a node . If no node is specified the previous selected node is highlighted if any . If no node was selected the root element is selected . @param aNode [ optional ] - The node to be selected . @param aScroll [ optional ] boolean Should we scroll to ensure that the selected node is visible .
function Highlighter_highlight(aNode, aScroll)
  {
    if (this.hidden)
      this.show();
    let oldNode = this.node;
    if (!aNode) {
      if (!this.node)
        this.node = this.win.document.documentElement;
    } else {
      this.node = aNode;
    }
    if (oldNode !== this.node) {
      this.updateInfobar();
    }
    this.invalidateSize(!!aScroll);
    if (oldNode !== this.node) {
      this.emitEvent("nodeselected");
    }
  }
function Highlighter_highlight ( aNode , aScroll ) { if ( this . hidden ) this . show ( ) ; let oldNode = this . node ; if ( ! aNode ) { if ( ! this . node ) this . node = this . win . document . documentElement ; } else { this . node = aNode ; } if ( oldNode !== this . node ) { this . updateInfobar ( ) ; } this . invalidateSize ( ! ! aScroll ) ; if ( oldNode !== this . node ) { this . emitEvent ( "nodeselected" ) ; } }
Show the outline, and select a node.
Show the outline and select a node .