B2G/gecko/browser/devtools/styleinspector/CssLogic.jsm
/**
 * A safe way to access cached bits of information about a stylesheet.
 *
 * @constructor
 * @param {CssLogic} aCssLogic pointer to the CssLogic instance working with
 * this CssSheet object.
 * @param {CSSStyleSheet} aDomSheet reference to a DOM CSSStyleSheet object.
 * @param {number} aIndex tells the index/position of the stylesheet within the
 * main document.
 */
A safe way to access cached bits of information about a stylesheet.
@constructor
@param {CssLogic} aCssLogic pointer to the CssLogic instance working with
this CssSheet object.
A safe way to access cached bits of information about a stylesheet . @constructor @param { CssLogic } aCssLogic pointer to the CssLogic instance working with this CssSheet object .
function CssSheet(aCssLogic, aDomSheet, aIndex)
{
  this._cssLogic = aCssLogic;
  this.domSheet = aDomSheet;
  this.index = this.contentSheet ? aIndex : -100 * aIndex;
  this._href = null;
  this._shortSource = null;
  this._sheetAllowed = null;
  this._rules = {};
  this._ruleCount = -1;
}
function CssSheet ( aCssLogic , aDomSheet , aIndex ) { this . _cssLogic = aCssLogic ; this . domSheet = aDomSheet ; this . index = this . contentSheet ? aIndex : - 100 * aIndex ; this . _href = null ; this . _shortSource = null ; this . _sheetAllowed = null ; this . _rules = { } ; this . _ruleCount = - 1 ; }
A safe way to access cached bits of information about a stylesheet.
A safe way to access cached bits of information about a stylesheet .
// Cache of the sheets href. Cached by the getter. // Short version of href for use in select boxes etc. Cached by getter. // null for uncached. // Cached CssRules from the given stylesheet.