Remove the traversal for DomRoot values when collection memory usage (#35607)

Signed-off-by: webbeef <me@webbeef.org>
This commit is contained in:
webbeef 2025-02-22 12:54:57 -08:00 committed by GitHub
parent 5aa662437b
commit b45f05c705
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -337,8 +337,8 @@ impl<T> MallocSizeOf for DomRoot<T>
where
T: DomObject + MallocSizeOf,
{
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize {
(**self).size_of(ops)
fn size_of(&self, _ops: &mut MallocSizeOfOps) -> usize {
0
}
}