aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlinputelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/htmlinputelement.rs')
-rw-r--r--components/script/dom/htmlinputelement.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/dom/htmlinputelement.rs b/components/script/dom/htmlinputelement.rs
index 2e883feae1d..f8a6e0a426d 100644
--- a/components/script/dom/htmlinputelement.rs
+++ b/components/script/dom/htmlinputelement.rs
@@ -46,6 +46,7 @@ const DEFAULT_RESET_VALUE: &'static str = "Reset";
#[derive(JSTraceable, PartialEq, Copy, Clone)]
#[allow(dead_code)]
+#[derive(HeapSizeOf)]
enum InputType {
InputSubmit,
InputReset,
@@ -59,6 +60,7 @@ enum InputType {
}
#[dom_struct]
+#[derive(HeapSizeOf)]
pub struct HTMLInputElement {
htmlelement: HTMLElement,
input_type: Cell<InputType>,
@@ -68,6 +70,7 @@ pub struct HTMLInputElement {
indeterminate: Cell<bool>,
value_changed: Cell<bool>,
size: Cell<u32>,
+ #[ignore_heap_size_of = "#7193"]
textinput: DOMRefCell<TextInput<ConstellationChan>>,
activation_state: DOMRefCell<InputActivationState>,
}
@@ -80,6 +83,7 @@ impl PartialEq for HTMLInputElement {
#[derive(JSTraceable)]
#[must_root]
+#[derive(HeapSizeOf)]
struct InputActivationState {
indeterminate: bool,
checked: bool,