mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Measure heap memory usage for more types. Fixes #6951
This commit is contained in:
parent
94c8dcd575
commit
45145108da
175 changed files with 669 additions and 94 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue