mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Consume self in PrivilegedPipelineContent methods.
This leads to a little bit of copy/paste, but the resulting code should be quite a bit more efficient.
This commit is contained in:
parent
8dadd1a420
commit
9d73b869db
2 changed files with 31 additions and 20 deletions
|
@ -362,7 +362,7 @@ impl<LTF: LayoutTaskFactory, STF: ScriptTaskFactory> Constellation<LTF, STF> {
|
|||
script_channel: Option<IpcSender<ConstellationControlMsg>>,
|
||||
load_data: LoadData) {
|
||||
let spawning_paint_only = script_channel.is_some();
|
||||
let (pipeline, unprivileged_pipeline_content, mut privileged_pipeline_content) =
|
||||
let (pipeline, unprivileged_pipeline_content, privileged_pipeline_content) =
|
||||
Pipeline::create::<LTF, STF>(InitialPipelineState {
|
||||
id: pipeline_id,
|
||||
parent_info: parent_info,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue