diff options
author | Michael Wu <mwu@mozilla.com> | 2015-10-30 15:40:43 -0400 |
---|---|---|
committer | Michael Wu <mwu@mozilla.com> | 2015-10-30 15:40:43 -0400 |
commit | 434a5f1d8b7fa3e2abd36d832f16381337885e3d (patch) | |
tree | 16afa074e3cdd4be8dc1f295f88c725461c6c5e7 /components/script/dom/xmlhttprequest.rs | |
parent | 7e786fb8ac0e0656682b16e5339950df1f5df931 (diff) | |
download | servo-434a5f1d8b7fa3e2abd36d832f16381337885e3d.tar.gz servo-434a5f1d8b7fa3e2abd36d832f16381337885e3d.zip |
Initialize dom struct fields in declaration order
Diffstat (limited to 'components/script/dom/xmlhttprequest.rs')
-rw-r--r-- | components/script/dom/xmlhttprequest.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/dom/xmlhttprequest.rs b/components/script/dom/xmlhttprequest.rs index 0e998c2fa1c..39b86117b34 100644 --- a/components/script/dom/xmlhttprequest.rs +++ b/components/script/dom/xmlhttprequest.rs @@ -163,10 +163,9 @@ impl XMLHttpRequest { request_headers: DOMRefCell::new(Headers::new()), request_body_len: Cell::new(0), sync: Cell::new(false), - send_flag: Cell::new(false), - upload_complete: Cell::new(false), upload_events: Cell::new(false), + send_flag: Cell::new(false), global: GlobalField::from_rooted(&global), timeout_cancel: DOMRefCell::new(None), |