diff --git a/components/constellation/constellation.rs b/components/constellation/constellation.rs index a49f14ae9a4..c6e7c16052f 100644 --- a/components/constellation/constellation.rs +++ b/components/constellation/constellation.rs @@ -423,7 +423,7 @@ impl Constellation initial_window_size: Option>, script_channel: Option>, load_data: LoadData) { - let spawning_paint_only = script_channel.is_some(); + let spawning_content = script_channel.is_none(); let (pipeline, unprivileged_pipeline_content, privileged_pipeline_content) = Pipeline::create::(InitialPipelineState { id: pipeline_id, @@ -448,11 +448,9 @@ impl Constellation webrender_api_sender: self.webrender_api_sender.clone(), }); - if spawning_paint_only { - privileged_pipeline_content.start_paint_thread(); - } else { - privileged_pipeline_content.start_all(); + privileged_pipeline_content.start(); + if spawning_content { // Spawn the child process. // // Yes, that's all there is to it! diff --git a/components/constellation/pipeline.rs b/components/constellation/pipeline.rs index 5af839e2496..2170fd8be03 100644 --- a/components/constellation/pipeline.rs +++ b/components/constellation/pipeline.rs @@ -471,11 +471,7 @@ pub struct PrivilegedPipelineContent { } impl PrivilegedPipelineContent { - pub fn start_all(self) { - self.start_paint_thread(); - } - - pub fn start_paint_thread(self) { + pub fn start(self) { PaintThread::create(self.id, self.load_data.url, self.chrome_to_paint_chan,