Fix for bug # :Hiding resize handles triggers assertion in ~nsGenericHTMLElement()

Modfied DeleteRefToAnonymousNode() so that it set the content node's document and parent to nsnull.

r=brade@netscape.com  sr=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@140710 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kin%netscape.com
2003-04-04 20:51:36 +00:00
parent b700779e62
commit fd1509505d

View File

@@ -468,6 +468,8 @@ nsHTMLEditor::DeleteRefToAnonymousNode(nsIDOMElement* aElement,
nsCOMPtr<nsIContent> content = do_QueryInterface(aElement);
if (content) {
aDocObserver->ContentRemoved(nsnull, aParentContent, content, -1);
content->SetDocument(nsnull, PR_TRUE, PR_TRUE);
content->SetParent(nsnull);
}
}