mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 10:25:01 +00:00
Fixing bogus assert code that I introduced when fixing 92433.
This commit is contained in:
parent
51ca0e4036
commit
7fe184bd8b
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user