Fixing bogus assert code that I introduced when fixing 92433.

This commit is contained in:
jst%netscape.com 2001-08-10 01:22:07 +00:00
parent 51ca0e4036
commit 7fe184bd8b
2 changed files with 4 additions and 3 deletions

View File

@ -1648,6 +1648,8 @@ nsDocument::ContentReplaced(nsIContent* aContainer,
nsIContent* aNewChild,
PRInt32 aIndexInContainer)
{
NS_ABORT_IF_FALSE(aOldChild && aNewChild, "Null old or new child child!");
PRInt32 i;
// Get new value of count for every iteration in case
// observers remove themselves during the loop.
@ -1669,7 +1671,7 @@ nsDocument::ContentRemoved(nsIContent* aContainer,
nsIContent* aChild,
PRInt32 aIndexInContainer)
{
NS_ABORT_IF_FALSE(aContainer && aChild, "Null container or child!");
NS_ABORT_IF_FALSE(aChild, "Null child!");
PRInt32 i;
// Get new value of count for every iteration in case

View File

@ -1184,8 +1184,7 @@ nsHTMLDocument::ContentReplaced(nsIContent* aContainer, nsIContent* aOldChild,
nsIContent* aNewChild,
PRInt32 aIndexInContainer)
{
NS_ABORT_IF_FALSE(aContainer && aOldChild && aNewChild,
"Null container, new child, or old child!");
NS_ABORT_IF_FALSE(aOldChild && aNewChild, "Null new or old child!");
nsresult rv = UnregisterNamedItems(aOldChild);