Bug 349069, Move more things from ~nsINode to nsNodeUtils::LastRelease, r+sr=sicking

git-svn-id: svn://10.0.0.236/trunk@208181 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
Olli.Pettay%helsinki.fi
2006-08-23 10:00:11 +00:00
parent fffc1862c7
commit fae460b8a9
9 changed files with 80 additions and 108 deletions

View File

@@ -91,14 +91,12 @@ nsGenericDOMDataNode::~nsGenericDOMDataNode()
{
NS_PRECONDITION(!IsInDoc(),
"Please remove this from the document properly");
nsNodeUtils::NodeWillBeDestroyed(this);
}
NS_IMPL_ADDREF(nsGenericDOMDataNode)
NS_IMPL_RELEASE_WITH_DESTROY(nsGenericDOMDataNode,
nsNodeUtils::LastRelease(this))
nsNodeUtils::LastRelease(this, PR_TRUE))
NS_INTERFACE_MAP_BEGIN(nsGenericDOMDataNode)
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIContent)