B2G/gecko/browser/devtools/styleinspector/CssLogic.jsm
/**
   * Refilter the matched and unmatched selectors arrays when the
   * CssLogic.sourceFilter changes. This allows for quick filter changes.
   * @private
   */
Refilter the matched and unmatched selectors arrays when the
CssLogic.sourceFilter changes. This allows for quick filter changes.
@private
Refilter the matched and unmatched selectors arrays when the CssLogic . sourceFilter changes . This allows for quick filter changes . @private
function CssPropertyInfo_refilterSelectors()
  {
    let passId = ++this._cssLogic._passId;
    let ruleCount = 0;
    let iterator = function(aSelectorInfo) {
      let cssRule = aSelectorInfo.selector._cssRule;
      if (cssRule._passId != passId) {
        if (cssRule.sheetAllowed) {
          ruleCount++;
        }
        cssRule._passId = passId;
      }
    };
    if (this._matchedSelectors) {
      this._matchedSelectors.forEach(iterator);
      this._matchedRuleCount = ruleCount;
    }
    if (this._unmatchedSelectors) {
      ruleCount = 0;
      this._unmatchedSelectors.forEach(iterator);
      this._unmatchedRuleCount = ruleCount;
    }
    this.needRefilter = false;
  }
function CssPropertyInfo_refilterSelectors ( ) { let passId = ++ this . _cssLogic . _passId ; let ruleCount = 0 ; let iterator = function ( aSelectorInfo ) { let cssRule = aSelectorInfo . selector . _cssRule ; if ( cssRule . _passId != passId ) { if ( cssRule . sheetAllowed ) { ruleCount ++ ; } cssRule . _passId = passId ; } } ; if ( this . _matchedSelectors ) { this . _matchedSelectors . forEach ( iterator ) ; this . _matchedRuleCount = ruleCount ; } if ( this . _unmatchedSelectors ) { ruleCount = 0 ; this . _unmatchedSelectors . forEach ( iterator ) ; this . _unmatchedRuleCount = ruleCount ; } this . needRefilter = false ; }
Refilter the matched and unmatched selectors arrays when the
 CssLogic.sourceFilter changes.
Refilter the matched and unmatched selectors arrays when the CssLogic . sourceFilter changes .