Bug 346744: Get rid of implementations of nsIContent::AppendChildTo and let it just forward to nsIContent::InsertChildAt. r/sr=bz
This commit is contained in:
@@ -2435,17 +2435,6 @@ nsGenericElement::doInsertChildAt(nsIContent* aKid, PRUint32 aIndex,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsGenericElement::AppendChildTo(nsIContent* aKid, PRBool aNotify)
|
||||
{
|
||||
// Make sure to _not_ call the subclass InsertChildAt here. If
|
||||
// subclasses wanted to hook into this stuff, they would have
|
||||
// overridden AppendChildTo.
|
||||
// XXXbz maybe this should just be a non-virtual method on nsINode?
|
||||
// Feels that way to me...
|
||||
return nsGenericElement::InsertChildAt(aKid, GetChildCount(), aNotify);
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsGenericElement::RemoveChildAt(PRUint32 aIndex, PRBool aNotify)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user