aboutsummaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorwebbeef <me@webbeef.org>2025-02-22 12:54:57 -0800
committerGitHub <noreply@github.com>2025-02-22 20:54:57 +0000
commitb45f05c70539b9d3990dd8467be9ab03b722b06d (patch)
tree535fdaf85d35c2c495ae53fb9ac1b4667bc59284 /components
parent5aa662437baa51513aa7371d3ba9c3d7a7ee2458 (diff)
downloadservo-b45f05c70539b9d3990dd8467be9ab03b722b06d.tar.gz
servo-b45f05c70539b9d3990dd8467be9ab03b722b06d.zip
Remove the traversal for DomRoot values when collection memory usage (#35607)
Signed-off-by: webbeef <me@webbeef.org>
Diffstat (limited to 'components')
-rw-r--r--components/script_bindings/root.rs4
1 files changed, 2 insertions, 2 deletions
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<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
}
}