From e93544c0039b196a2514207731ec9280e22a8564 Mon Sep 17 00:00:00 2001 From: Wulan Seruniati Salim <103485830+wulanseruniati@users.noreply.github.com> Date: Mon, 4 Nov 2024 03:28:55 +0700 Subject: [PATCH] Cleanup malloc_size_of for NodeIterator and HTMLCollection (#34118) Signed-off-by: Wulan Seruniati Salim --- components/script/dom/htmlcollection.rs | 2 +- components/script/dom/nodeiterator.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/script/dom/htmlcollection.rs b/components/script/dom/htmlcollection.rs index 6a60e0f42af..0dc1eae0a12 100644 --- a/components/script/dom/htmlcollection.rs +++ b/components/script/dom/htmlcollection.rs @@ -56,7 +56,7 @@ impl OptionU32 { pub struct HTMLCollection { reflector_: Reflector, root: Dom, - #[ignore_malloc_size_of = "Contains a trait object; can't measure due to #6870"] + #[ignore_malloc_size_of = "Trait object (Box) cannot be sized"] filter: Box, // We cache the version of the root node and all its decendents, // the length of the collection, and a cursor into the collection. diff --git a/components/script/dom/nodeiterator.rs b/components/script/dom/nodeiterator.rs index 4db202e4715..46bac1a8055 100644 --- a/components/script/dom/nodeiterator.rs +++ b/components/script/dom/nodeiterator.rs @@ -25,7 +25,7 @@ pub struct NodeIterator { reference_node: MutDom, pointer_before_reference_node: Cell, what_to_show: u32, - #[ignore_malloc_size_of = "Can't measure due to #6870"] + #[ignore_malloc_size_of = "Rc has shared ownership, so its size cannot be measured accurately"] filter: Filter, active: Cell, }