aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xmlhttprequest.rs
diff options
context:
space:
mode:
authorMichael Wu <mwu@mozilla.com>2015-10-30 15:40:43 -0400
committerMichael Wu <mwu@mozilla.com>2015-10-30 15:40:43 -0400
commit434a5f1d8b7fa3e2abd36d832f16381337885e3d (patch)
tree16afa074e3cdd4be8dc1f295f88c725461c6c5e7 /components/script/dom/xmlhttprequest.rs
parent7e786fb8ac0e0656682b16e5339950df1f5df931 (diff)
downloadservo-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.rs3
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),