B2G/gecko/browser/devtools/styleeditor/StyleEditorChrome.jsm
/**
   * Update split view summary of given StyleEditor instance.
   *
   * @param StyleEditor aEditor
   * @param DOMElement aSummary
   *        Optional item's summary element to update. If none, item corresponding
   *        to passed aEditor is used.
   */
Update split view summary of given StyleEditor instance.
@param StyleEditor aEditor
@param DOMElement aSummary
Optional item's summary element to update. If none, item corresponding
to passed aEditor is used.
Update split view summary of given StyleEditor instance . @param StyleEditor aEditor @param DOMElement aSummary Optional item ' s summary element to update . If none item corresponding to passed aEditor is used .
function SEC__updateSummaryForEditor(aEditor, aSummary)
  {
    let summary = aSummary || this.getSummaryElementForEditor(aEditor);
    let ruleCount = aEditor.styleSheet.cssRules.length;
    this._view.setItemClassName(summary, aEditor.flags);
    let label = summary.querySelector(".stylesheet-name > label");
    label.setAttribute("value", aEditor.getFriendlyName());
    text(summary, ".stylesheet-title", aEditor.styleSheet.title || "");
    text(summary, ".stylesheet-rule-count",
      PluralForm.get(ruleCount, _("ruleCount.label")).replace("#1", ruleCount));
    text(summary, ".stylesheet-error-message", aEditor.errorMessage);
  }
function SEC__updateSummaryForEditor ( aEditor , aSummary ) { let summary = aSummary || this . getSummaryElementForEditor ( aEditor ) ; let ruleCount = aEditor . styleSheet . cssRules . length ; this . _view . setItemClassName ( summary , aEditor . flags ) ; let label = summary . querySelector ( ".stylesheet-name > label" ) ; label . setAttribute ( "value" , aEditor . getFriendlyName ( ) ) ; text ( summary , ".stylesheet-title" , aEditor . styleSheet . title || "" ) ; text ( summary , ".stylesheet-rule-count" , PluralForm . get ( ruleCount , _ ( "ruleCount.label" ) ) . replace ( "#1" , ruleCount ) ) ; text ( summary , ".stylesheet-error-message" , aEditor . errorMessage ) ; }
Update split view summary of given StyleEditor instance.
Update split view summary of given StyleEditor instance .