*aParent = parent; NS_IF_ADDREF(*aParent);
return parent;
nsBindingManager::GetOutermostStyleScope(nsIContent* aContent,                                         nsIContent** aParent){  nsCOMPtr<nsIContent> parent;  GetEnclosingScope(aContent, getter_AddRefs(parent));  while (parent) {    PRBool inheritsStyle = PR_TRUE;    nsCOMPtr<nsIXBLBinding> binding;    GetBinding(parent, getter_AddRefs(binding));    if (binding) {      binding->InheritsStyle(&inheritsStyle);    }    if (!inheritsStyle)      break;    nsCOMPtr<nsIContent> child = parent;    GetEnclosingScope(child, getter_AddRefs(parent));    if (parent == child)      break; // The scrollbar case only is deliberately hacked to return itself             // (see GetBindingParent in nsXULElement.cpp).  }  *aParent = parent;  NS_IF_ADDREF(*aParent);}