Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsCSSStyleSheet.h File Reference
#include "nscore.h"
#include "nsCOMPtr.h"
#include "nsAutoPtr.h"
#include "nsICSSStyleSheet.h"
#include "nsIDOMCSSStyleSheet.h"
#include "nsICSSLoaderObserver.h"
#include "nsVoidArray.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  nsCSSStyleSheetInner
class  nsCSSStyleSheet


static PRBool CascadeSheetRulesInto (nsICSSStyleSheet *aSheet, void *aData)

Function Documentation

static PRBool CascadeSheetRulesInto ( nsICSSStyleSheet aSheet,
void aData 
) [static]

Definition at line 3838 of file nsCSSStyleSheet.cpp.

  nsCSSStyleSheet*  sheet = NS_STATIC_CAST(nsCSSStyleSheet*, aSheet);
  CascadeEnumData* data = NS_STATIC_CAST(CascadeEnumData*, aData);
  PRBool bSheetApplicable = PR_TRUE;

  if (bSheetApplicable && sheet->UseForMedium(data->mPresContext)) {
    nsCSSStyleSheet* child = sheet->mFirstChild;
    while (child) {
      CascadeSheetRulesInto(child, data);
      child = child->mNext;

    if (sheet->mInner && sheet->mInner->mOrderedRules) {
      sheet->mInner->mOrderedRules->EnumerateForwards(InsertRuleByWeight, data);
  return PR_TRUE;

Here is the call graph for this function: