restructure content process shutdown ack with threaded sender, without layout

This commit is contained in:
Gregory Terzian 2019-08-09 15:52:49 +08:00
parent 9bba14cb43
commit 8482d2e781
9 changed files with 9 additions and 40 deletions

View file

@ -198,7 +198,6 @@ impl HTMLIFrameElement {
opener: None,
load_data: load_data,
pipeline_port: pipeline_receiver,
content_process_shutdown_chan: None,
window_size: WindowSizeData {
initial_viewport: {
let rect = self.upcast::<Node>().bounding_content_box_or_zero();

View file

@ -303,7 +303,6 @@ impl WindowProxy {
opener: Some(self.browsing_context_id),
load_data: load_data,
pipeline_port: pipeline_receiver,
content_process_shutdown_chan: None,
window_size: window.window_size(),
};
let constellation_msg = ScriptMsg::ScriptNewAuxiliary(load_info, pipeline_sender);

View file

@ -612,7 +612,7 @@ pub struct ScriptThread {
timer_event_chan: Sender<TimerEvent>,
timer_event_port: Receiver<TimerEvent>,
content_process_shutdown_chan: IpcSender<()>,
content_process_shutdown_chan: Sender<()>,
/// <https://html.spec.whatwg.org/multipage/#microtask-queue>
microtask_queue: Rc<MicrotaskQueue>,
@ -2276,7 +2276,6 @@ impl ScriptThread {
load_data,
window_size,
pipeline_port,
content_process_shutdown_chan,
} = new_layout_info;
let layout_pair = unbounded();
@ -2294,7 +2293,6 @@ impl ScriptThread {
constellation_chan: self.layout_to_constellation_chan.clone(),
script_chan: self.control_chan.clone(),
image_cache: self.image_cache.clone(),
content_process_shutdown_chan: content_process_shutdown_chan,
paint_time_metrics: PaintTimeMetrics::new(
new_pipeline_id,
self.time_profiler_chan.clone(),