B2G/gecko/browser/devtools/styleinspector/CssLogic.jsm
/**
 * A cache of information about the matched rules, selectors and values attached
 * to a CSS property, for the highlighted element.
 *
 * The heart of the CssPropertyInfo object is the _findMatchedSelectors() and
 * _findUnmatchedSelectors() methods. These are invoked when the PropertyView
 * tries to access the .matchedSelectors and .unmatchedSelectors arrays.
 * Results are cached, for later reuse.
 *
 * @param {CssLogic} aCssLogic Reference to the parent CssLogic instance
 * @param {string} aProperty The CSS property we are gathering information for
 * @constructor
 */
A cache of information about the matched rules, selectors and values attached
to a CSS property, for the highlighted element.

The heart of the CssPropertyInfo object is the _findMatchedSelectors() and
_findUnmatchedSelectors() methods. These are invoked when the PropertyView
tries to access the .matchedSelectors and .unmatchedSelectors arrays.
Results are cached, for later reuse.

@param {CssLogic} aCssLogic Reference to the parent CssLogic instance
@param {string} aProperty The CSS property we are gathering information for
@constructor
A cache of information about the matched rules selectors and values attached to a CSS property for the highlighted element . The heart of the CssPropertyInfo object is the _findMatchedSelectors () and _findUnmatchedSelectors () methods . These are invoked when the PropertyView tries to access the . matchedSelectors and . unmatchedSelectors arrays . Results are cached for later reuse . @param { CssLogic } aCssLogic Reference to the parent CssLogic instance @param { string } aProperty The CSS property we are gathering information for @constructor
function CssPropertyInfo(aCssLogic, aProperty)
{
  this._cssLogic = aCssLogic;
  this.property = aProperty;
  this._value = "";
  this._matchedRuleCount = 0;
  this._matchedSelectors = null;
  this._unmatchedSelectors = null;
}
function CssPropertyInfo ( aCssLogic , aProperty ) { this . _cssLogic = aCssLogic ; this . property = aProperty ; this . _value = "" ; this . _matchedRuleCount = 0 ; this . _matchedSelectors = null ; this . _unmatchedSelectors = null ; }
A cache of information about the matched rules, selectors and values attached
 to a CSS property, for the highlighted element.
A cache of information about the matched rules selectors and values attached to a CSS property for the highlighted element .
// The number of matched rules holding the this.property style property. // Additionally, only rules that come from allowed stylesheets are counted. // An array holding CssSelectorInfo objects for each of the matched selectors // that are inside a CSS rule. Only rules that hold the this.property are // counted. This includes rules that come from filtered stylesheets (those // that have sheetAllowed = false).