if (mInsertionPointTable) { if(mInsertionPointTable->Count() == 1) { nsISupportsKey key(kChildrenAtom); nsCOMPtr<nsIContent> content = getter_AddRefs(NS_STATIC_CAST(nsIContent*, mInsertionPointTable->Get(&key))); *aResult = content; NS_IF_ADDREF(*aResult); } else *aMultipleInsertionPoints = PR_TRUE; } return NS_OK;
if (mContent) mPrototypeBinding->GetSingleInsertionPoint(mBoundElement, mContent, aResult, aIndex, aMultipleInsertionPoints, aDefaultContent); else if (mNextBinding) return mNextBinding->GetSingleInsertionPoint(aResult, aIndex, aMultipleInsertionPoints, aDefaultContent); return NS_OK;
nsXBLBinding::GetSingleInsertionPoint(nsIContent** aResult, PRBool* aMultipleInsertionPoints){  *aResult = nsnull;  *aMultipleInsertionPoints = PR_FALSE;  if (mInsertionPointTable) {    if(mInsertionPointTable->Count() == 1) {      nsISupportsKey key(kChildrenAtom);      nsCOMPtr<nsIContent> content = getter_AddRefs(NS_STATIC_CAST(nsIContent*,                                                                    mInsertionPointTable->Get(&key)));      *aResult = content;      NS_IF_ADDREF(*aResult);    }    else       *aMultipleInsertionPoints = PR_TRUE;  }  return NS_OK;  }