NS_FORWARD_NSIDOMNODE_NO_CLONENODE(nsGenericElement::)
nsXULElement::RemoveChild(nsIDOMNode* aOldChild, nsIDOMNode** aReturn) { NS_PRECONDITION(aOldChild != nsnull, "null ptr"); if (! aOldChild) return NS_ERROR_NULL_POINTER;  nsresult rv;  nsCOMPtr<nsIContent> element = do_QueryInterface(aOldChild); NS_ASSERTION(element != nsnull, "not an nsIContent");  if (element) { PRInt32 pos; rv = IndexOf(element, pos); NS_ASSERTION(NS_SUCCEEDED(rv), "unable to determine index of aOldChild");  if (NS_SUCCEEDED(rv) && (pos >= 0)) { rv = RemoveChildAt(pos, PR_TRUE); NS_ASSERTION(NS_SUCCEEDED(rv), "unable to remove old child"); } }  NS_ADDREF(aOldChild); *aReturn = aOldChild; return NS_OK; }
    NS_FORWARD_NSIDOMNODE_NO_CLONENODE(nsGenericElement::)