nsGenericHTMLContainerElement::AppendChildTo(nsIContent* aKid, PRBool aNotify) { NS_PRECONDITION((nsnull != aKid) && (aKid != mContent), "null ptr"); nsIDocument* doc = mDocument; if (aNotify && (nsnull != doc)) { doc->BeginUpdate();
NS_IMETHOD AppendChildTo(nsIContent* aKid, PRBool aNotify, PRBool aDeepSetDocument) { return NS_OK;
nsGenericHTMLContainerElement::AppendChildTo(nsIContent* aKid, PRBool aNotify){  NS_PRECONDITION((nsnull != aKid) && (aKid != mContent), "null ptr");  nsIDocument* doc = mDocument;  if (aNotify && (nsnull != doc)) {    doc->BeginUpdate();  }  PRBool rv = mChildren.AppendElement(aKid);  if (rv) {    NS_ADDREF(aKid);    aKid->SetParent(mContent);    // ranges don't need adjustment since new child is at end of list    if (nsnull != doc) {      aKid->SetDocument(doc, PR_FALSE);      if (aNotify) {        doc->ContentAppended(mContent, mChildren.Count() - 1);      }    }  }  if (aNotify && (nsnull != doc)) {    doc->EndUpdate();  }  return NS_OK;}