From b45f05c70539b9d3990dd8467be9ab03b722b06d Mon Sep 17 00:00:00 2001 From: webbeef Date: Sat, 22 Feb 2025 12:54:57 -0800 Subject: Remove the traversal for DomRoot values when collection memory usage (#35607) Signed-off-by: webbeef --- components/script_bindings/root.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components') diff --git a/components/script_bindings/root.rs b/components/script_bindings/root.rs index f1d1510b83c..c18c30cfae7 100644 --- a/components/script_bindings/root.rs +++ b/components/script_bindings/root.rs @@ -337,8 +337,8 @@ impl MallocSizeOf for DomRoot 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 } } -- cgit v1.2.3