B2G/gecko/browser/devtools/layoutview/LayoutView.jsm
/**
   * Called when the iframe is loaded.
   */
Called when the iframe is loaded.
Called when the iframe is loaded .
function LV_onDocumentReady() {
    this.documentReady = true;
    this.doc = this.iframe.contentDocument;
    this.sizeLabel = this.doc.querySelector(".size > span");
    this.sizeHeadingLabel = this.doc.getElementById("element-size");
    if (this.inspector.locked)
      this.onSelect();
    else
      this.onUnlock();
    if (this.inspector._layoutViewIsOpen) {
      this.open();
    } else {
      this.close();
    }
  }
function LV_onDocumentReady ( ) { this . documentReady = true ; this . doc = this . iframe . contentDocument ; this . sizeLabel = this . doc . querySelector ( ".size > span" ) ; this . sizeHeadingLabel = this . doc . getElementById ( "element-size" ) ; if ( this . inspector . locked ) this . onSelect ( ) ; else this . onUnlock ( ) ; if ( this . inspector . _layoutViewIsOpen ) { this . open ( ) ; } else { this . close ( ) ; } }
Called when the iframe is loaded.
Called when the iframe is loaded .
// Save reference to the labels displaying size of the node. // We can't do that earlier because open() and close() need to do stuff // inside the iframe.