mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Initialize dom struct fields in declaration order
This commit is contained in:
parent
7e786fb8ac
commit
434a5f1d8b
4 changed files with 7 additions and 8 deletions
|
@ -62,15 +62,15 @@ impl Event {
|
|||
reflector_: Reflector::new(),
|
||||
current_target: Default::default(),
|
||||
target: Default::default(),
|
||||
phase: Cell::new(EventPhase::None),
|
||||
type_: DOMRefCell::new("".to_owned()),
|
||||
phase: Cell::new(EventPhase::None),
|
||||
canceled: Cell::new(false),
|
||||
stop_propagation: Cell::new(false),
|
||||
stop_immediate: Cell::new(false),
|
||||
cancelable: Cell::new(false),
|
||||
bubbles: Cell::new(false),
|
||||
trusted: Cell::new(false),
|
||||
dispatching: Cell::new(false),
|
||||
stop_propagation: Cell::new(false),
|
||||
stop_immediate: Cell::new(false),
|
||||
initialized: Cell::new(false),
|
||||
timestamp: time::get_time().sec as u64,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue