B2G/gecko/browser/devtools/styleinspector/CssRuleView.jsm
/**
   * Reread the current state of the rules and rebuild text
   * properties as needed.
   */
Reread the current state of the rules and rebuild text
properties as needed.
Reread the current state of the rules and rebuild text properties as needed .
function Rule_refresh()
  {
    let newTextProps = this._getTextProperties();
    let brandNewProps = [];
    for (let newProp of newTextProps) {
      if (!this._updateTextProperty(newProp)) {
        brandNewProps.push(newProp);
      }
    }
    for (let prop of this.textProps) {
      if (!prop._visited) {
        prop.enabled = false;
        prop.updateEditor();
      } else {
        delete prop._visited;
      }
    }
    this.textProps = this.textProps.concat(brandNewProps);
    if (this.editor) {
      this.editor.populate();
    }
  }
function Rule_refresh ( ) { let newTextProps = this . _getTextProperties ( ) ; let brandNewProps = [ ] ; for ( let newProp of newTextProps ) { if ( ! this . _updateTextProperty ( newProp ) ) { brandNewProps . push ( newProp ) ; } } for ( let prop of this . textProps ) { if ( ! prop . _visited ) { prop . enabled = false ; prop . updateEditor ( ) ; } else { delete prop . _visited ; } } this . textProps = this . textProps . concat ( brandNewProps ) ; if ( this . editor ) { this . editor . populate ( ) ; } }
Reread the current state of the rules and rebuild text
 properties as needed.
Reread the current state of the rules and rebuild text properties as needed .
// Update current properties for each property present on the style. // This will mark any touched properties with _visited so we // can detect properties that weren't touched (because they were // removed from the style). // Also keep track of properties that didn't exist in the current set // of properties. // Refresh editors and disabled state for all the properties that // were updated. // Properties that weren't touched during the update // process must no longer exist on the node.  Mark them disabled. // Add brand new properties. // Refresh the editor if one already exists.