B2G/gecko/browser/devtools/styleinspector/CssRuleView.jsm
/**
   * Refresh the list of rules to be displayed for the active element.
   * Upon completion, this.rules[] will hold a list of Rule objects.
   */
Refresh the list of rules to be displayed for the active element.
Upon completion, this.rules[] will hold a list of Rule objects.
Refresh the list of rules to be displayed for the active element . Upon completion this . rules [] will hold a list of Rule objects .
function ElementStyle_populate()
  {
    this._refreshRules = this.rules;
    this.rules = [];
    let element = this.element;
    do {
      this._addElementRules(element);
    } while ((element = element.parentNode) &&
             element.nodeType === Ci.nsIDOMNode.ELEMENT_NODE);
    this.markOverridden();
    delete this._refreshRules;
  }
function ElementStyle_populate ( ) { this . _refreshRules = this . rules ; this . rules = [ ] ; let element = this . element ; do { this . _addElementRules ( element ) ; } while ( ( element = element . parentNode ) && element . nodeType === Ci . nsIDOMNode . ELEMENT_NODE ) ; this . markOverridden ( ) ; delete this . _refreshRules ; }
Refresh the list of rules to be displayed for the active element.
Refresh the list of rules to be displayed for the active element .
// Store the current list of rules (if any) during the population // process.  They will be reused if possible. // Mark overridden computed styles. // We're done with the previous list of rules.