mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01: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
|
@ -155,10 +155,10 @@ impl Element {
|
|||
namespace: namespace,
|
||||
prefix: prefix,
|
||||
attrs: DOMRefCell::new(vec!()),
|
||||
attr_list: Default::default(),
|
||||
class_list: Default::default(),
|
||||
id_attribute: DOMRefCell::new(None),
|
||||
style_attribute: DOMRefCell::new(None),
|
||||
attr_list: Default::default(),
|
||||
class_list: Default::default(),
|
||||
event_state: Cell::new(state),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue