diff options
author | Keith Yeung <kungfukeith11@gmail.com> | 2015-12-05 14:17:22 -0800 |
---|---|---|
committer | Keith Yeung <kungfukeith11@gmail.com> | 2015-12-06 12:12:14 -0800 |
commit | 8d90034d2917cc68a4d7e570b010fa60e8514b95 (patch) | |
tree | fb5bd9e20cbfd6c66956159ad814899c208a5979 /components/script/dom/filereader.rs | |
parent | 368dd1dc53cd595bbbcf6f9fb139e9ac573a351b (diff) | |
download | servo-8d90034d2917cc68a4d7e570b010fa60e8514b95.tar.gz servo-8d90034d2917cc68a4d7e570b010fa60e8514b95.zip |
Split fn script_chan into 5 different task channel fn
Diffstat (limited to 'components/script/dom/filereader.rs')
-rw-r--r-- | components/script/dom/filereader.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/filereader.rs b/components/script/dom/filereader.rs index 96b14caed9d..02aef5e3f01 100644 --- a/components/script/dom/filereader.rs +++ b/components/script/dom/filereader.rs @@ -360,10 +360,10 @@ impl FileReader { let load_data = ReadMetaData::new(String::from(type_), label.map(String::from), function); - let fr = Trusted::new(global.get_cx(), self, global.script_chan()); + let fr = Trusted::new(global.get_cx(), self, global.file_reading_task_source()); let gen_id = self.generation_id.get(); - let script_chan = global.script_chan(); + let script_chan = global.file_reading_task_source(); spawn_named("file reader async operation".to_owned(), move || { perform_annotated_read_operation(gen_id, load_data, bytes, fr, script_chan) |