B2G/gecko/browser/devtools/styleinspector/CssLogic.jsm
/**
   * Process a matched CssSelector object.
   *
   * @private
   * @param {CssSelector} aSelector the matched CssSelector object.
   * @param {CssLogic.STATUS} aStatus the CssSelector match status.
   */
Process a matched CssSelector object.
@private
@param {CssSelector} aSelector the matched CssSelector object.
@param {CssLogic.STATUS} aStatus the CssSelector match status.
Process a matched CssSelector object . @private @param { CssSelector } aSelector the matched CssSelector object . @param { CssLogic . STATUS } aStatus the CssSelector match status .
function CssPropertyInfo_processMatchedSelector(aSelector, aStatus)
  {
    let cssRule = aSelector._cssRule;
    let value = cssRule.getPropertyValue(this.property);
    if (value &&
        (aStatus == CssLogic.STATUS.MATCHED ||
         (aStatus == CssLogic.STATUS.PARENT_MATCH &&
          this._cssLogic.domUtils.isInheritedProperty(this.property)))) {
      let selectorInfo = new CssSelectorInfo(aSelector, this.property, value,
          aStatus);
      this._matchedSelectors.push(selectorInfo);
      if (this._cssLogic._passId !== cssRule._passId && cssRule.sheetAllowed) {
        this._matchedRuleCount++;
      }
    }
  }
function CssPropertyInfo_processMatchedSelector ( aSelector , aStatus ) { let cssRule = aSelector . _cssRule ; let value = cssRule . getPropertyValue ( this . property ) ; if ( value && ( aStatus == CssLogic . STATUS . MATCHED || ( aStatus == CssLogic . STATUS . PARENT_MATCH && this . _cssLogic . domUtils . isInheritedProperty ( this . property ) ) ) ) { let selectorInfo = new CssSelectorInfo ( aSelector , this . property , value , aStatus ) ; this . _matchedSelectors . push ( selectorInfo ) ; if ( this . _cssLogic . _passId !== cssRule . _passId && cssRule . sheetAllowed ) { this . _matchedRuleCount ++ ; } } }
Process a matched CssSelector object.
Process a matched CssSelector object .