Bug 1097850 - ChildFinder::NoteNativeChild() should call CanSkip(). r=smaug

This commit is contained in:
Andrew McCreight 2014-12-12 13:42:21 -08:00
parent 49eb457686
commit 04a954071f

View File

@ -2449,7 +2449,11 @@ NS_IMETHODIMP_(void)
ChildFinder::NoteNativeChild(void* aChild, ChildFinder::NoteNativeChild(void* aChild,
nsCycleCollectionParticipant* aHelper) nsCycleCollectionParticipant* aHelper)
{ {
if (aChild) { if (!aChild) {
return;
}
MOZ_ASSERT(aHelper, "Native child must have a participant");
if (!aHelper->CanSkip(aChild, true)) {
mMayHaveChild = true; mMayHaveChild = true;
} }
} }