mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Issue #9561 continued - renamed *_thread_source to *_task_source in global.rs and related files
This commit is contained in:
parent
61f09cce4e
commit
c6dfd7e2fa
6 changed files with 19 additions and 19 deletions
|
@ -1034,7 +1034,7 @@ impl XMLHttpRequest {
|
|||
// This will cancel all previous timeouts
|
||||
let global = self.global();
|
||||
let callback = ScheduledXHRTimeout {
|
||||
xhr: Trusted::new(self, global.r().networking_thread_source()),
|
||||
xhr: Trusted::new(self, global.r().networking_task_source()),
|
||||
generation_id: self.generation_id.get(),
|
||||
};
|
||||
let duration = Length::new(duration_ms as u64);
|
||||
|
@ -1234,7 +1234,7 @@ impl XMLHttpRequest {
|
|||
Ok(req) => req,
|
||||
};
|
||||
|
||||
let xhr = Trusted::new(self, global.networking_thread_source());
|
||||
let xhr = Trusted::new(self, global.networking_task_source());
|
||||
|
||||
let context = Arc::new(Mutex::new(XHRContext {
|
||||
xhr: xhr,
|
||||
|
@ -1248,7 +1248,7 @@ impl XMLHttpRequest {
|
|||
let (tx, rx) = global.new_script_pair();
|
||||
(tx, Some(rx))
|
||||
} else {
|
||||
(global.networking_thread_source(), None)
|
||||
(global.networking_task_source(), None)
|
||||
};
|
||||
|
||||
let resource_thread = global.resource_thread();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue