if (sheet->mInner && sheet->mInner->mOrderedRules) { sheet->mInner->mOrderedRules->EnumerateForwards(InsertRuleByWeight, data);
if (sheet->mInner) { sheet->mInner->mOrderedRules.EnumerateForwards(InsertRuleByWeight, data);
CascadeSheetRulesInto(nsICSSStyleSheet* aSheet, void* aData){  nsCSSStyleSheet*  sheet = NS_STATIC_CAST(nsCSSStyleSheet*, aSheet);  CascadeEnumData* data = NS_STATIC_CAST(CascadeEnumData*, aData);  PRBool bSheetApplicable = PR_TRUE;  sheet->GetApplicable(bSheetApplicable);  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;}