Bug 237566: Remove nsIContent::ReplaceChildAt and supportive codepaths.

r=bz sr=jst


git-svn-id: svn://10.0.0.236/trunk@154723 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sicking%bigfoot.com
2004-04-12 22:48:33 +00:00
parent 5cdb46f69f
commit e4632ed495
46 changed files with 70 additions and 635 deletions

View File

@@ -1234,29 +1234,6 @@ nsHTMLDocument::ContentInserted(nsIContent* aContainer, nsIContent* aContent,
nsDocument::ContentInserted(aContainer, aContent, aIndexInContainer);
}
void
nsHTMLDocument::ContentReplaced(nsIContent* aContainer, nsIContent* aOldChild,
nsIContent* aNewChild,
PRInt32 aIndexInContainer)
{
NS_ABORT_IF_FALSE(aOldChild && aNewChild, "Null new or old child!");
nsresult rv = UnregisterNamedItems(aOldChild);
if (NS_FAILED(rv)) {
return;
}
rv = RegisterNamedItems(aNewChild);
if (NS_FAILED(rv)) {
return;
}
nsDocument::ContentReplaced(aContainer, aOldChild,
aNewChild, aIndexInContainer);
}
void
nsHTMLDocument::ContentRemoved(nsIContent* aContainer, nsIContent* aContent,
PRInt32 aIndexInContainer)