Issue #1375 - Don't mark nodes in the shadow tree as orphan nodes

Port of Bug 1026714
This commit is contained in:
Basilisk-Dev 2022-10-20 18:22:30 -04:00 committed by roytam1
commit 9277c9418d

View file

@ -1921,7 +1921,7 @@ NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INTERNAL(FragmentOrElement)
}
nsAutoCString orphan;
if (!tmp->IsInUncomposedDoc() &&
if (!tmp->IsInComposedDoc() &&
// Ignore xbl:content, which is never in the document and hence always
// appears to be orphaned.
!tmp->NodeInfo()->Equals(nsGkAtoms::content, kNameSpaceID_XBL)) {