nsCompatibility quirkMode; aPresContext->GetCompatibilityMode(&quirkMode);
CSSRuleProcessor::GetRuleCascade(nsIPresContext* aPresContext, nsIAtom* aMedium){  RuleCascadeData **cascadep = &mRuleCascades;  RuleCascadeData *cascade;  while ((cascade = *cascadep)) {    if (cascade->mMedium == aMedium)      return cascade;    cascadep = &cascade->mNext;  }  if (mSheets) {    nsCompatibility quirkMode;    aPresContext->GetCompatibilityMode(&quirkMode);    cascade = new RuleCascadeData(aMedium,                                  eCompatibility_NavQuirks == quirkMode);    if (cascade) {      CascadeEnumData data(aMedium, cascade->mRuleHash.Arena());      mSheets->EnumerateForwards(CascadeSheetRulesInto, &data);      nsVoidArray weightedRules;      PutRulesInList(&data.mRuleArrays, &weightedRules);      if (!weightedRules.EnumerateBackwards(AddRule, cascade)) {        delete cascade;        cascade = nsnull;      }      *cascadep = cascade;    }  }  return cascade;}