Hoist retrieval of layout_threads from opts into Constellation

This commit is contained in:
Dirkjan Ochtman 2016-07-19 22:12:07 +02:00
parent 9c0e7b1cf2
commit e182d29441
6 changed files with 26 additions and 10 deletions

View file

@ -1142,6 +1142,7 @@ impl ScriptThread {
pipeline_port,
layout_to_constellation_chan,
content_process_shutdown_chan,
layout_threads,
} = new_layout_info;
let layout_pair = channel();
@ -1158,6 +1159,7 @@ impl ScriptThread {
script_chan: self.control_chan.clone(),
image_cache_thread: self.image_cache_thread.clone(),
content_process_shutdown_chan: content_process_shutdown_chan,
layout_threads: layout_threads,
};
let context = self.root_browsing_context();