mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add test for #11818
This commit is contained in:
parent
ad4b9aab45
commit
0809809c23
7 changed files with 95 additions and 17 deletions
|
@ -162,7 +162,7 @@ impl Pipeline {
|
|||
pipeline_port: pipeline_port,
|
||||
layout_to_constellation_chan: state.layout_to_constellation_chan.clone(),
|
||||
content_process_shutdown_chan: layout_content_process_shutdown_chan.clone(),
|
||||
layout_threads: opts::get().layout_threads,
|
||||
layout_threads: PREFS.get("layout.threads").as_u64().expect("count") as usize,
|
||||
};
|
||||
|
||||
if let Err(e) = script_chan.send(ConstellationControlMsg::AttachLayout(new_layout_info)) {
|
||||
|
@ -474,7 +474,8 @@ impl UnprivilegedPipelineContent {
|
|||
self.mem_profiler_chan,
|
||||
self.layout_content_process_shutdown_chan,
|
||||
self.webrender_api_sender,
|
||||
opts::get().layout_threads);
|
||||
self.prefs.get("layout.threads").expect("exists").value()
|
||||
.as_u64().expect("count") as usize);
|
||||
|
||||
if wait_for_completion {
|
||||
let _ = self.script_content_process_shutdown_port.recv();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue