mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Cleanup malloc_size_of for NodeIterator and HTMLCollection (#34118)
Signed-off-by: Wulan Seruniati Salim <wulanseruniati@gmail.com>
This commit is contained in:
parent
a2af619009
commit
e93544c003
2 changed files with 2 additions and 2 deletions
|
@ -56,7 +56,7 @@ impl OptionU32 {
|
|||
pub struct HTMLCollection {
|
||||
reflector_: Reflector,
|
||||
root: Dom<Node>,
|
||||
#[ignore_malloc_size_of = "Contains a trait object; can't measure due to #6870"]
|
||||
#[ignore_malloc_size_of = "Trait object (Box<dyn CollectionFilter>) cannot be sized"]
|
||||
filter: Box<dyn CollectionFilter + 'static>,
|
||||
// We cache the version of the root node and all its decendents,
|
||||
// the length of the collection, and a cursor into the collection.
|
||||
|
|
|
@ -25,7 +25,7 @@ pub struct NodeIterator {
|
|||
reference_node: MutDom<Node>,
|
||||
pointer_before_reference_node: Cell<bool>,
|
||||
what_to_show: u32,
|
||||
#[ignore_malloc_size_of = "Can't measure due to #6870"]
|
||||
#[ignore_malloc_size_of = "Rc<NodeFilter> has shared ownership, so its size cannot be measured accurately"]
|
||||
filter: Filter,
|
||||
active: Cell<bool>,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue