From fd1509505d0d7f7a11d3ac9ab9e814b71805ffc3 Mon Sep 17 00:00:00 2001 From: "kin%netscape.com" Date: Fri, 4 Apr 2003 20:51:36 +0000 Subject: [PATCH] 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 --- mozilla/editor/libeditor/html/nsHTMLObjectResizer.cpp | 2 ++ 1 file changed, 2 insertions(+) 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); } }