diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-01-18 20:41:42 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-01-18 21:09:15 +0100 |
commit | 3b033493d302bf29a48b6c21cc58fa4f9d5fcd83 (patch) | |
tree | 3c0e810046d5038865d329e4f7375dae8475ab2a /xpcom/base/nsCycleCollector.cpp | |
parent | e15f6aa0f9375d0c8d77286d093e7ce1e41fbde6 (diff) | |
download | uxp-3b033493d302bf29a48b6c21cc58fa4f9d5fcd83.tar.gz |
Consolidate tracing and traversing.
Diffstat (limited to 'xpcom/base/nsCycleCollector.cpp')
-rw-r--r-- | xpcom/base/nsCycleCollector.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xpcom/base/nsCycleCollector.cpp b/xpcom/base/nsCycleCollector.cpp index d6dc26954c..01e67945d4 100644 --- a/xpcom/base/nsCycleCollector.cpp +++ b/xpcom/base/nsCycleCollector.cpp @@ -2265,7 +2265,7 @@ CCGraphBuilder::BuildGraph(SliceBudget& aBudget) SetFirstChild(); if (pi->mParticipant) { - nsresult rv = pi->mParticipant->Traverse(pi->mPointer, *this); + nsresult rv = pi->mParticipant->TraverseNativeAndJS(pi->mPointer, *this); MOZ_RELEASE_ASSERT(!NS_FAILED(rv), "Cycle collector Traverse method failed"); } @@ -2539,7 +2539,7 @@ static bool MayHaveChild(void* aObj, nsCycleCollectionParticipant* aCp) { ChildFinder cf; - aCp->Traverse(aObj, cf); + aCp->TraverseNativeAndJS(aObj, cf); return cf.MayHaveChild(); } |