diff options
author | Ms2ger <Ms2ger@gmail.com> | 2016-11-28 10:23:04 +0100 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2016-11-30 11:26:35 +0100 |
commit | b86965f3948cb830b084a53133ec949af0d11ff7 (patch) | |
tree | 6cfc43be4b56abfe483ce436fc2a113705382376 /components/constellation/pipeline.rs | |
parent | 2677540cd0fe93b741e82e1176b5073a8a92fba6 (diff) | |
download | servo-b86965f3948cb830b084a53133ec949af0d11ff7.tar.gz servo-b86965f3948cb830b084a53133ec949af0d11ff7.zip |
Implement synchronous about:blank loading.
Based on initial work by jdm in <https://github.com/servo/servo/pull/8600>.
Diffstat (limited to 'components/constellation/pipeline.rs')
-rw-r--r-- | components/constellation/pipeline.rs | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/components/constellation/pipeline.rs b/components/constellation/pipeline.rs index 53c2a58e091..890476e5010 100644 --- a/components/constellation/pipeline.rs +++ b/components/constellation/pipeline.rs @@ -256,17 +256,19 @@ impl Pipeline { Ok((pipeline, child_process)) } - fn new(id: PipelineId, - frame_id: FrameId, - parent_info: Option<(PipelineId, FrameType)>, - script_chan: Rc<ScriptChan>, - layout_chan: IpcSender<LayoutControlMsg>, - compositor_proxy: Box<CompositorProxy + 'static + Send>, - is_private: bool, - url: ServoUrl, - size: Option<TypedSize2D<f32, PagePx>>, - visible: bool) - -> Pipeline { + /// Creates a new `Pipeline`, after the script and layout threads have been + /// spawned. + pub fn new(id: PipelineId, + frame_id: FrameId, + parent_info: Option<(PipelineId, FrameType)>, + script_chan: Rc<ScriptChan>, + layout_chan: IpcSender<LayoutControlMsg>, + compositor_proxy: Box<CompositorProxy + 'static + Send>, + is_private: bool, + url: ServoUrl, + size: Option<TypedSize2D<f32, PagePx>>, + visible: bool) + -> Pipeline { let pipeline = Pipeline { id: id, frame_id: frame_id, |