Bug 331547: Get rid of nsGenericElement::WillAddOrRemove

This commit is contained in:
cvshook@sicking.cc
2006-03-24 22:43:23 +00:00
parent 5131d0a956
commit 6cc8883d51
5 changed files with 38 additions and 53 deletions

View File

@@ -2285,9 +2285,6 @@ nsGenericElement::InsertChildAt(nsIContent* aKid,
{
NS_PRECONDITION(aKid, "null ptr");
nsresult rv = WillAddOrRemoveChild(aKid, aIndex, PR_FALSE);
NS_ENSURE_SUCCESS(rv, rv);
return doInsertChildAt(aKid, aIndex, aNotify, this, GetCurrentDoc(),
mAttrsAndChildren);
}
@@ -2376,9 +2373,6 @@ nsGenericElement::RemoveChildAt(PRUint32 aIndex, PRBool aNotify)
{
nsCOMPtr<nsIContent> oldKid = GetChildAt(aIndex);
if (oldKid) {
nsresult rv = WillAddOrRemoveChild(oldKid, aIndex, PR_TRUE);
NS_ENSURE_SUCCESS(rv, rv);
return doRemoveChildAt(aIndex, aNotify, oldKid, this, GetCurrentDoc(),
mAttrsAndChildren);
}
@@ -3237,14 +3231,6 @@ nsGenericElement::InternalGetExistingAttrNameFromQName(const nsAString& aStr) co
NS_ConvertUTF16toUTF8(aStr));
}
nsresult
nsGenericElement::WillAddOrRemoveChild(nsIContent* /*aKid*/,
PRUint32 /*aIndex*/,
PRBool /*aRemove*/)
{
return NS_OK;
}
nsresult
nsGenericElement::CopyInnerTo(nsGenericElement* aDst, PRBool aDeep) const
{