B2G/gecko/browser/devtools/styleinspector/CssRuleView.jsm
/**
   * Populate the span based on changes to the TextProperty.
   */
Populate the span based on changes to the TextProperty.
Populate the span based on changes to the TextProperty .
function TextPropertyEditor_update()
  {
    if (this.prop.enabled) {
      this.enable.style.removeProperty("visibility");
      this.enable.setAttribute("checked", "");
    } else {
      this.enable.style.visibility = "visible";
      this.enable.removeAttribute("checked");
    }
    if (this.prop.overridden && !this.editing) {
      this.element.classList.add("ruleview-overridden");
    } else {
      this.element.classList.remove("ruleview-overridden");
    }
    let name = this.prop.name;
    this.nameSpan.textContent = name;
    let val = this.prop.value;
    if (this.prop.priority) {
      val += " !" + this.prop.priority;
    }
    this.valueSpan.textContent = val;
    this.warning.hidden = this._validate();
    let store = this.prop.rule.elementStyle.store;
    let propDirty = store.userProperties.contains(this.prop.rule.style, name);
    if (propDirty) {
      this.element.setAttribute("dirty", "");
    } else {
      this.element.removeAttribute("dirty");
    }
    this._updateComputed();
  }
function TextPropertyEditor_update ( ) { if ( this . prop . enabled ) { this . enable . style . removeProperty ( "visibility" ) ; this . enable . setAttribute ( "checked" , "" ) ; } else { this . enable . style . visibility = "visible" ; this . enable . removeAttribute ( "checked" ) ; } if ( this . prop . overridden && ! this . editing ) { this . element . classList . add ( "ruleview-overridden" ) ; } else { this . element . classList . remove ( "ruleview-overridden" ) ; } let name = this . prop . name ; this . nameSpan . textContent = name ; let val = this . prop . value ; if ( this . prop . priority ) { val += " !" + this . prop . priority ; } this . valueSpan . textContent = val ; this . warning . hidden = this . _validate ( ) ; let store = this . prop . rule . elementStyle . store ; let propDirty = store . userProperties . contains ( this . prop . rule . style , name ) ; if ( propDirty ) { this . element . setAttribute ( "dirty" , "" ) ; } else { this . element . removeAttribute ( "dirty" ) ; } this . _updateComputed ( ) ; }
Populate the span based on changes to the TextProperty.
Populate the span based on changes to the TextProperty .
// Combine the property's value and priority into one string for // the value. // Populate the computed styles.