Fix importNode, need to set the document before notifying. Bug 124358. r=Pike, sr=jst.

git-svn-id: svn://10.0.0.236/trunk@114021 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peterv%netscape.com
2002-02-08 11:28:15 +00:00
parent 76c31e4bbd
commit b1c3df0cf1

View File

@@ -3004,9 +3004,11 @@ nsDocument::InsertBefore(nsIDOMNode* aNewChild, nsIDOMNode* aRefChild,
// index-th spot in mChildren.
if (ELEMENT_NODE == nodeType)
mRootContent = content;
ContentInserted(nsnull, content, indx);
content->SetDocument(this, PR_TRUE, PR_TRUE);
ContentInserted(nsnull, content, indx);
*aReturn = aNewChild;
NS_ADDREF(aNewChild);