B2G/gecko/browser/devtools/styleinspector/CssLogic.jsm
/**
   * Tells if the sheet is allowed or not by the current CssLogic.sourceFilter.
   *
   * @return {boolean} true if the stylesheet is allowed by the sourceFilter, or
   * false otherwise.
   */
Tells if the sheet is allowed or not by the current CssLogic.sourceFilter.
@return {boolean} true if the stylesheet is allowed by the sourceFilter, or
false otherwise.
Tells if the sheet is allowed or not by the current CssLogic . sourceFilter . @return { boolean } true if the stylesheet is allowed by the sourceFilter or false otherwise .
get sheetAllowed()
  {
    if (this._sheetAllowed !== null) {
      return this._sheetAllowed;
    }
    this._sheetAllowed = true;
    let filter = this._cssLogic.sourceFilter;
    if (filter === CssLogic.FILTER.ALL && !this.contentSheet) {
      this._sheetAllowed = false;
    }
    if (filter !== CssLogic.FILTER.ALL && filter !== CssLogic.FILTER.UA) {
      this._sheetAllowed = (filter === this.href);
    }
    return this._sheetAllowed;
  }
get sheetAllowed ( ) { if ( this . _sheetAllowed !== null ) { return this . _sheetAllowed ; } this . _sheetAllowed = true ; let filter = this . _cssLogic . sourceFilter ; if ( filter === CssLogic . FILTER . ALL && ! this . contentSheet ) { this . _sheetAllowed = false ; } if ( filter !== CssLogic . FILTER . ALL && filter !== CssLogic . FILTER . UA ) { this . _sheetAllowed = ( filter === this . href ) ; } return this . _sheetAllowed ; }
Tells if the sheet is allowed or not by the current CssLogic.sourceFilter.
Tells if the sheet is allowed or not by the current CssLogic . sourceFilter .