mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 23:02:20 +00:00
Bug 1800582 - Trace mAccessibles rather than mChildren r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D162080
This commit is contained in:
parent
712a94ff1f
commit
949432f9a7
@ -1402,9 +1402,10 @@ size_t DocAccessibleParent::SizeOfExcludingThis(MallocSizeOf aMallocSizeOf) {
|
||||
|
||||
size += mChildDocs.ShallowSizeOfExcludingThis(aMallocSizeOf);
|
||||
|
||||
// We don't recurse into mAccessibles because this is already done when
|
||||
// RemoteAccessibleBase checked mChildren.
|
||||
size += mAccessibles.ShallowSizeOfExcludingThis(aMallocSizeOf);
|
||||
for (auto i = mAccessibles.Iter(); !i.Done(); i.Next()) {
|
||||
size += i.Get()->mProxy->SizeOfIncludingThis(aMallocSizeOf);
|
||||
}
|
||||
|
||||
size += mPendingOOPChildDocs.ShallowSizeOfExcludingThis(aMallocSizeOf);
|
||||
|
||||
|
@ -1732,11 +1732,9 @@ size_t RemoteAccessibleBase<Derived>::SizeOfExcludingThis(
|
||||
size += mCachedFields->SizeOfIncludingThis(aMallocSizeOf);
|
||||
}
|
||||
|
||||
// Count children
|
||||
// We don't recurse into mChildren because they're already counted in their
|
||||
// document's mAccessibles.
|
||||
size += mChildren.ShallowSizeOfExcludingThis(aMallocSizeOf);
|
||||
for (Derived* child : mChildren) {
|
||||
size += child->SizeOfIncludingThis(aMallocSizeOf);
|
||||
}
|
||||
|
||||
return size;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user