Issue #9561 continued - renamed *_thread_source to *_task_source in global.rs and related files

This commit is contained in:
Kamil Muszyński 2016-02-17 21:25:12 +01:00
parent 61f09cce4e
commit c6dfd7e2fa
6 changed files with 19 additions and 19 deletions

View file

@ -71,7 +71,7 @@ impl Worker {
let (sender, receiver) = channel();
let worker = Worker::new(global, sender.clone());
let worker_ref = Trusted::new(worker.r(), global.dom_manipulation_thread_source());
let worker_ref = Trusted::new(worker.r(), global.dom_manipulation_task_source());
let worker_id = global.get_next_worker_id();
let (devtools_sender, devtools_receiver) = ipc::channel().unwrap();
@ -102,7 +102,7 @@ impl Worker {
};
DedicatedWorkerGlobalScope::run_worker_scope(
init, worker_url, global.pipeline(), devtools_receiver, worker_ref,
global.dom_manipulation_thread_source(), sender, receiver);
global.dom_manipulation_task_source(), sender, receiver);
Ok(worker)
}
@ -141,7 +141,7 @@ impl WorkerMethods for Worker {
// https://html.spec.whatwg.org/multipage/#dom-dedicatedworkerglobalscope-postmessage
fn PostMessage(&self, cx: *mut JSContext, message: HandleValue) -> ErrorResult {
let data = try!(StructuredCloneData::write(cx, message));
let address = Trusted::new(self, self.global().r().dom_manipulation_thread_source());
let address = Trusted::new(self, self.global().r().dom_manipulation_task_source());
self.sender.send((address, WorkerScriptMsg::DOMMessage(data))).unwrap();
Ok(())
}