mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 14:58:37 +09:00
Consolidate tracing and traversing.
This commit is contained in:
parent
13969c80a3
commit
e015efb999
4 changed files with 38 additions and 16 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue