diff options
Diffstat (limited to 'components/script/dom/htmlbuttonelement.rs')
-rw-r--r-- | components/script/dom/htmlbuttonelement.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/htmlbuttonelement.rs b/components/script/dom/htmlbuttonelement.rs index 927ac9688c7..b1cc150fe52 100644 --- a/components/script/dom/htmlbuttonelement.rs +++ b/components/script/dom/htmlbuttonelement.rs @@ -29,6 +29,7 @@ use std::cell::Cell; #[derive(JSTraceable, PartialEq, Copy, Clone)] #[allow(dead_code)] +#[derive(HeapSizeOf)] enum ButtonType { ButtonSubmit, ButtonReset, @@ -37,6 +38,7 @@ enum ButtonType { } #[dom_struct] +#[derive(HeapSizeOf)] pub struct HTMLButtonElement { htmlelement: HTMLElement, button_type: Cell<ButtonType> |