nsDocument::StyleRuleChanged(nsIStyleSheet* aStyleSheet, nsIStyleRule* aOldStyleRule, nsIStyleRule* aNewStyleRule) { PRInt32 i;   for (i = mObservers.Count() - 1; i >= 0; --i) { nsIDocumentObserver *observer = NS_STATIC_CAST(nsIDocumentObserver *, mObservers.ElementAt(i));  observer->StyleRuleChanged(this, aStyleSheet, aOldStyleRule, aNewStyleRule); } }
NS_IMETHOD StyleRuleChanged(nsIDocument *aDocument, nsIStyleSheet* aStyleSheet, nsIStyleRule* aStyleRule, PRInt32 aHint) { return NS_OK; }
nsDocument::StyleRuleChanged(nsIStyleSheet* aStyleSheet,                             nsIStyleRule* aOldStyleRule,                             nsIStyleRule* aNewStyleRule){  PRInt32 i;  // Loop backwards to handle observers removing themselves  for (i = mObservers.Count() - 1; i >= 0; --i) {    nsIDocumentObserver *observer =      NS_STATIC_CAST(nsIDocumentObserver *, mObservers.ElementAt(i));    observer->StyleRuleChanged(this, aStyleSheet, aOldStyleRule, aNewStyleRule);  }}