mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-05 00:02:37 +00:00
Fix importNode, need to set the document before notifying. Bug 124358. r=Pike, sr=jst.
This commit is contained in:
parent
cf8e2d560b
commit
ea840e446a
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user