mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
restructure content process shutdown ack with threaded sender, without layout
This commit is contained in:
parent
9bba14cb43
commit
8482d2e781
9 changed files with 9 additions and 40 deletions
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue