mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 577309 part 1. Fix the assertion in IsRootOfAnonymousSubtree to not fire on default insertion point content. r=sicking
This commit is contained in:
parent
7b749dffcd
commit
9af6d809f5
@ -232,6 +232,14 @@ public:
|
||||
"to binding parent");
|
||||
NS_ASSERTION(!GetParent() ||
|
||||
((GetBindingParent() == GetParent()) ==
|
||||
HasFlag(NODE_IS_ANONYMOUS)) ||
|
||||
// Unfortunately default content for XBL insertion points is
|
||||
// anonymous content that is bound with the parent of the
|
||||
// insertion point as the parent but the bound element for the
|
||||
// binding as the binding parent. So we have to complicate
|
||||
// the assert a bit here.
|
||||
(GetBindingParent() &&
|
||||
(GetBindingParent() == GetParent()->GetBindingParent()) ==
|
||||
HasFlag(NODE_IS_ANONYMOUS)),
|
||||
"For nodes with parent, flag and GetBindingParent() check "
|
||||
"should match");
|
||||
|
Loading…
Reference in New Issue
Block a user