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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user