B2G/gecko/browser/devtools/styleinspector/CssRuleView.jsm
/**
   * Update the list of computed properties for this text property.
   */
Update the list of computed properties for this text property.
Update the list of computed properties for this text property .
function TextProperty_updateComputed()
  {
    if (!this.name) {
      return;
    }
    let dummyElement = this.rule.elementStyle.dummyElement;
    let dummyStyle = dummyElement.style;
    dummyStyle.cssText = "";
    dummyStyle.setProperty(this.name, this.value, this.priority);
    this.computed = [];
    for (let i = 0, n = dummyStyle.length; i < n; i++) {
      let prop = dummyStyle.item(i);
      this.computed.push({
        textProp: this,
        name: prop,
        value: dummyStyle.getPropertyValue(prop),
        priority: dummyStyle.getPropertyPriority(prop),
      });
    }
  }
function TextProperty_updateComputed ( ) { if ( ! this . name ) { return ; } let dummyElement = this . rule . elementStyle . dummyElement ; let dummyStyle = dummyElement . style ; dummyStyle . cssText = "" ; dummyStyle . setProperty ( this . name , this . value , this . priority ) ; this . computed = [ ] ; for ( let i = 0 , n = dummyStyle . length ; i < n ; i ++ ) { let prop = dummyStyle . item ( i ) ; this . computed . push ( { textProp : this , name : prop , value : dummyStyle . getPropertyValue ( prop ) , priority : dummyStyle . getPropertyPriority ( prop ) , } ) ; } }
Update the list of computed properties for this text property.
Update the list of computed properties for this text property .
// This is a bit funky.  To get the list of computed properties // for this text property, we'll set the property on a dummy element // and see what the computed style looks like.