зеркало из https://github.com/mozilla/pjs.git
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
This commit is contained in:
Родитель
6e8d34f06e
Коммит
03308d1b07
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче