B2G/gecko/browser/devtools/highlighter/highlighter.jsm
/**
   * Update the highlighter size and position.
   */
Update the highlighter size and position.
Update the highlighter size and position .
function Highlighter_invalidateSize(aScroll)
  {
    let rect = null;
    if (this.node && this.isNodeHighlightable(this.node)) {
      if (aScroll &&
          this.node.scrollIntoView) { 
        this.node.scrollIntoView();
      }
      let clientRect = this.node.getBoundingClientRect();
      rect = LayoutHelpers.getDirtyRect(this.node);
    }
    this.highlightRectangle(rect);
    this.moveInfobar();
    if (this._highlighting) {
      this.showOutline();
      this.emitEvent("highlighting");
    }
  }
function Highlighter_invalidateSize ( aScroll ) { let rect = null ; if ( this . node && this . isNodeHighlightable ( this . node ) ) { if ( aScroll && this . node . scrollIntoView ) { this . node . scrollIntoView ( ) ; } let clientRect = this . node . getBoundingClientRect ( ) ; rect = LayoutHelpers . getDirtyRect ( this . node ) ; } this . highlightRectangle ( rect ) ; this . moveInfobar ( ) ; if ( this . _highlighting ) { this . showOutline ( ) ; this . emitEvent ( "highlighting" ) ; } }
Update the highlighter size and position.
Update the highlighter size and position .
// XUL elements don't have such method