aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xmlhttprequest.rs
diff options
context:
space:
mode:
authorKeith Yeung <kungfukeith11@gmail.com>2015-12-05 14:17:22 -0800
committerKeith Yeung <kungfukeith11@gmail.com>2015-12-06 12:12:14 -0800
commit8d90034d2917cc68a4d7e570b010fa60e8514b95 (patch)
treefb5bd9e20cbfd6c66956159ad814899c208a5979 /components/script/dom/xmlhttprequest.rs
parent368dd1dc53cd595bbbcf6f9fb139e9ac573a351b (diff)
downloadservo-8d90034d2917cc68a4d7e570b010fa60e8514b95.tar.gz
servo-8d90034d2917cc68a4d7e570b010fa60e8514b95.zip
Split fn script_chan into 5 different task channel fn
Diffstat (limited to 'components/script/dom/xmlhttprequest.rs')
-rw-r--r--components/script/dom/xmlhttprequest.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/xmlhttprequest.rs b/components/script/dom/xmlhttprequest.rs
index 24bd012f105..5a667cb34ca 100644
--- a/components/script/dom/xmlhttprequest.rs
+++ b/components/script/dom/xmlhttprequest.rs
@@ -981,7 +981,7 @@ impl XMLHttpRequest {
// This will cancel all previous timeouts
let global = self.global.root();
let callback = ScheduledXHRTimeout {
- xhr: Trusted::new(global.r().get_cx(), self, global.r().script_chan()),
+ xhr: Trusted::new(global.r().get_cx(), self, global.r().networking_task_source()),
generation_id: self.generation_id.get(),
};
let duration = Length::new(duration_ms as u64);
@@ -1053,7 +1053,7 @@ impl XMLHttpRequest {
Ok(req) => req,
};
- let xhr = Trusted::new(global.get_cx(), self, global.script_chan());
+ let xhr = Trusted::new(global.get_cx(), self, global.networking_task_source());
let context = Arc::new(Mutex::new(XHRContext {
xhr: xhr,
@@ -1067,7 +1067,7 @@ impl XMLHttpRequest {
let (tx, rx) = global.new_script_pair();
(tx, Some(rx))
} else {
- (global.script_chan(), None)
+ (global.networking_task_source(), None)
};
let resource_task = global.resource_task();