B2G/gecko/browser/devtools/styleeditor/StyleEditorChrome.jsm
/**
   * Disable all UI, effectively making editors read-only.
   * This is automatically called when no content window is attached.
   *
   * @see contentWindow
   */
Disable all UI, effectively making editors read-only.
This is automatically called when no content window is attached.

@see contentWindow
Disable all UI effectively making editors read - only . This is automatically called when no content window is attached . @see contentWindow
function SEC__disableChrome()
  {
    let matches = this._root.querySelectorAll("button,toolbarbutton,textbox");
    for (let i = 0; i < matches.length; ++i) {
      matches[i].setAttribute("disabled", "disabled");
    }
    this.editors.forEach(function onEnterReadOnlyMode(aEditor) {
      aEditor.readOnly = true;
    });
    this._view.rootElement.setAttribute("disabled", "disabled");
    this._triggerChromeListeners("ContentDetach");
  }
function SEC__disableChrome ( ) { let matches = this . _root . querySelectorAll ( "button,toolbarbutton,textbox" ) ; for ( let i = 0 ; i < matches . length ; ++ i ) { matches [ i ] . setAttribute ( "disabled" , "disabled" ) ; } this . editors . forEach ( function onEnterReadOnlyMode ( aEditor ) { aEditor . readOnly = true ; } ) ; this . _view . rootElement . setAttribute ( "disabled" , "disabled" ) ; this . _triggerChromeListeners ( "ContentDetach" ) ; }
Disable all UI, effectively making editors read-only.
Disable all UI effectively making editors read - only .