nsCOMPtr<nsIContent> bindingParent; aChild->GetBindingParent(getter_AddRefs(bindingParent)); if (bindingParent == aParent)
if (aChild->GetBindingParent() == aParent)
nsBindingManager::GetNestedInsertionPoint(nsIContent* aParent, nsIContent* aChild, nsIContent** aResult){  *aResult = nsnull;  // Check to see if the content is anonymous.  nsCOMPtr<nsIContent> bindingParent;  aChild->GetBindingParent(getter_AddRefs(bindingParent));  if (bindingParent == aParent)    return NS_OK; // It is anonymous. Don't use the insertion point, since that's only                  // for the explicit kids.  nsCOMPtr<nsIContent> insertionElement;  PRUint32 index;  GetInsertionPoint(aParent, aChild, getter_AddRefs(insertionElement), &index);  if (insertionElement != aParent) {    // See if we nest even further in.    nsCOMPtr<nsIContent> nestedPoint;    GetNestedInsertionPoint(insertionElement, aChild, getter_AddRefs(nestedPoint));    if (nestedPoint)      insertionElement = nestedPoint;  }  *aResult = insertionElement;  NS_IF_ADDREF(*aResult);  return NS_OK;}