diff options
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r-- | components/script/dom/document.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index dd7dc90e0fe..5383ea6df33 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -110,6 +110,7 @@ pub enum IsHTMLDocument { // https://dom.spec.whatwg.org/#document #[dom_struct] +#[derive(HeapSizeOf)] pub struct Document { node: Node, window: JS<Window>, @@ -144,6 +145,7 @@ pub struct Document { animation_frame_ident: Cell<i32>, /// https://html.spec.whatwg.org/multipage/#list-of-animation-frame-callbacks /// List of animation frame callbacks + #[ignore_heap_size_of = "closures are hard"] animation_frame_list: RefCell<HashMap<i32, Box<Fn(f64)>>>, /// Tracks all outstanding loads related to this document. loader: DOMRefCell<DocumentLoader>, |