mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Share script threads per-tab and per-eTLD+1.
This commit is contained in:
parent
a89ba50180
commit
7ae19c07f0
5 changed files with 102 additions and 88 deletions
|
@ -162,19 +162,20 @@ impl LoadData {
|
|||
}
|
||||
}
|
||||
|
||||
/// The initial data associated with a newly-created framed pipeline.
|
||||
/// The initial data required to create a new layout attached to an existing script thread.
|
||||
#[derive(Deserialize, Serialize)]
|
||||
pub struct NewLayoutInfo {
|
||||
/// Id of the parent of this new pipeline.
|
||||
pub parent_pipeline_id: PipelineId,
|
||||
/// The ID of the parent pipeline and frame type, if any.
|
||||
/// If `None`, this is a root pipeline.
|
||||
pub parent_info: Option<(PipelineId, FrameType)>,
|
||||
/// Id of the newly-created pipeline.
|
||||
pub new_pipeline_id: PipelineId,
|
||||
/// Id of the frame associated with this pipeline.
|
||||
pub frame_id: FrameId,
|
||||
/// Type of the frame associated with this pipeline.
|
||||
pub frame_type: FrameType,
|
||||
/// Network request data which will be initiated by the script thread.
|
||||
pub load_data: LoadData,
|
||||
/// Information about the initial window size.
|
||||
pub window_size: Option<WindowSizeData>,
|
||||
/// A port on which layout can receive messages from the pipeline.
|
||||
pub pipeline_port: IpcReceiver<LayoutControlMsg>,
|
||||
/// A sender for the layout thread to communicate to the constellation.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue