mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Split page load into separate network and parsing stages. Delay Page creation until the load is finished. Make session history traversal simply activate existing pipelines, rather than potentially loading them from the network.
This commit is contained in:
parent
621150db1c
commit
d9f04180a5
5 changed files with 267 additions and 189 deletions
|
@ -407,8 +407,7 @@ impl<LTF: LayoutTaskFactory, STF: ScriptTaskFactory> Constellation<LTF, STF> {
|
|||
self.time_profiler_chan.clone(),
|
||||
self.window_size,
|
||||
script_pipeline,
|
||||
load_data.clone());
|
||||
pipe.load();
|
||||
load_data);
|
||||
Rc::new(pipe)
|
||||
}
|
||||
|
||||
|
@ -876,7 +875,7 @@ impl<LTF: LayoutTaskFactory, STF: ScriptTaskFactory> Constellation<LTF, STF> {
|
|||
};
|
||||
|
||||
for frame in destination_frame.iter() {
|
||||
frame.pipeline.borrow().load();
|
||||
frame.pipeline.borrow().activate();
|
||||
frame.pipeline.borrow().thaw();
|
||||
}
|
||||
self.send_frame_tree_and_grant_paint_permission(destination_frame);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue