Bug 465934 - ASSERTION: Trying to re-bind content from native anonymous subtree to non-native anonymous parent, r+sr=sicking

This commit is contained in:
Olli Pettay 2008-12-03 12:18:57 +02:00
parent 0d850d55f0
commit 12dadbb5d0
2 changed files with 2 additions and 2 deletions

View File

@ -612,7 +612,7 @@ nsGenericDOMDataNode::BindToTree(nsIDocument* aDocument, nsIContent* aParent,
NS_ASSERTION(IsRootOfNativeAnonymousSubtree() ||
!HasFlag(NODE_IS_IN_ANONYMOUS_SUBTREE) ||
aBindingParent->IsInNativeAnonymousSubtree(),
(aParent && aParent->IsInNativeAnonymousSubtree()),
"Trying to re-bind content from native anonymous subtree to "
"non-native anonymous parent!");
slots->mBindingParent = aBindingParent; // Weak, so no addref happens.

View File

@ -2532,7 +2532,7 @@ nsGenericElement::BindToTree(nsIDocument* aDocument, nsIContent* aParent,
}
NS_ASSERTION(!aBindingParent || IsRootOfNativeAnonymousSubtree() ||
!HasFlag(NODE_IS_IN_ANONYMOUS_SUBTREE) ||
aBindingParent->IsInNativeAnonymousSubtree(),
(aParent && aParent->IsInNativeAnonymousSubtree()),
"Trying to re-bind content from native anonymous subtree to "
"non-native anonymous parent!");
if (IsRootOfNativeAnonymousSubtree() ||