return NS_OK;
if (aParent != aCurrContent) { nsCOMPtr<nsIContent> par; GetEnclosingScope(aCurrContent, getter_AddRefs(par)); if (par) WalkRules(aFunc, aData, aParent, par); }
nsBindingManager::WalkRules(nsIStyleSet* aStyleSet,                            nsISupportsArrayEnumFunc aFunc,                            RuleProcessorData* aData){  nsIContent *content = aData->mContent;  if (!content)    return NS_OK;  nsCOMPtr<nsIContent> parent;  GetOutermostStyleScope(content, getter_AddRefs(parent));  WalkRules(aFunc, aData, parent, content);  // Null out the scoped root that we set repeatedly in the other |WalkRules|.  aData->mScopedRoot = nsnull;  if (parent) {    // We cut ourselves off, but we still need to walk the document's attribute sheet    // so that inline style continues to work on anonymous content.    nsCOMPtr<nsIDocument> document;    content->GetDocument(getter_AddRefs(document));    nsCOMPtr<nsIHTMLContentContainer> container(do_QueryInterface(document));    if (container) {      nsCOMPtr<nsIHTMLCSSStyleSheet> inlineSheet;      container->GetInlineStyleSheet(getter_AddRefs(inlineSheet));        nsCOMPtr<nsIStyleRuleProcessor> inlineCSS(do_QueryInterface(inlineSheet));      if (inlineCSS)        (*aFunc)((nsISupports*)(inlineCSS.get()), aData);    }  }  return NS_OK;}