if (aParent != aCurrContent) { nsCOMPtr<nsIContent> par; GetEnclosingScope(aCurrContent, getter_AddRefs(par)); if (par) WalkRules(aFunc, aData, aParent, par); }
return NS_OK;
nsBindingManager::WalkRules(nsISupportsArrayEnumFunc aFunc,                            RuleProcessorData* aData,                            nsIContent* aParent, nsIContent* aCurrContent){  nsCOMPtr<nsIXBLBinding> binding;  GetBinding(aCurrContent, getter_AddRefs(binding));  if (binding) {    aData->mScopedRoot = aCurrContent;    binding->WalkRules(aFunc, aData);  }  if (aParent != aCurrContent) {    nsCOMPtr<nsIContent> par;    GetEnclosingScope(aCurrContent, getter_AddRefs(par));    if (par)      WalkRules(aFunc, aData, aParent, par);  }}