B2G/gecko/browser/devtools/styleinspector/CssRuleView.jsm
/**
   * Set a named property for a given CSSStyleDeclaration.
   *
   * @param {CSSStyleDeclaration} aStyle
   *        The CSSStyleDeclaration against which the property is to be mapped.
   * @param {String} aName
   *        The name of the property to set.
   * @param {String} aComputedValue
   *        The computed property value.  The user value will not be used if the
   *        computed value changes.
   * @param {String} aUserValue
   *        The value of the property to set.
   */
Set a named property for a given CSSStyleDeclaration.
@param {CSSStyleDeclaration} aStyle
The CSSStyleDeclaration against which the property is to be mapped.
@param {String} aName
The name of the property to set.
@param {String} aComputedValue
The computed property value.  The user value will not be used if the
computed value changes.
@param {String} aUserValue
The value of the property to set.
Set a named property for a given CSSStyleDeclaration . @param { CSSStyleDeclaration } aStyle The CSSStyleDeclaration against which the property is to be mapped . @param { String } aName The name of the property to set . @param { String } aComputedValue The computed property value . The user value will not be used if the computed value changes . @param { String } aUserValue The value of the property to set .
function UP_setProperty(aStyle, aName, aComputedValue, aUserValue) {
    let entry = this.map.get(aStyle, null);
    if (entry) {
      entry[aName] = { computed: aComputedValue, user: aUserValue };
    } else {
      let props = {};
      props[aName] = { computed: aComputedValue, user: aUserValue };
      this.map.set(aStyle, props);
    }
  }
function UP_setProperty ( aStyle , aName , aComputedValue , aUserValue ) { let entry = this . map . get ( aStyle , null ) ; if ( entry ) { entry [ aName ] = { computed : aComputedValue , user : aUserValue } ; } else { let props = { } ; props [ aName ] = { computed : aComputedValue , user : aUserValue } ; this . map . set ( aStyle , props ) ; } }
Set a named property for a given CSSStyleDeclaration.
Set a named property for a given CSSStyleDeclaration .