diff --git a/mozilla/editor/libeditor/html/nsHTMLObjectResizer.cpp b/mozilla/editor/libeditor/html/nsHTMLObjectResizer.cpp index 1f8262ea863..88be0770fb6 100644 --- a/mozilla/editor/libeditor/html/nsHTMLObjectResizer.cpp +++ b/mozilla/editor/libeditor/html/nsHTMLObjectResizer.cpp @@ -468,6 +468,8 @@ nsHTMLEditor::DeleteRefToAnonymousNode(nsIDOMElement* aElement, nsCOMPtr content = do_QueryInterface(aElement); if (content) { aDocObserver->ContentRemoved(nsnull, aParentContent, content, -1); + content->SetDocument(nsnull, PR_TRUE, PR_TRUE); + content->SetParent(nsnull); } }