diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-12-17 23:46:42 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-12-23 13:00:56 +0100 |
commit | 006e71c7dec624935d3d4faf9ea5f783e2a24a67 (patch) | |
tree | 8aafa810734abd03c16c0bdf08aaa341e5e25848 /components/script/dom | |
parent | 27bb33cb9ec549bbe46b4ebad22d6e21f4dc62ba (diff) | |
download | servo-006e71c7dec624935d3d4faf9ea5f783e2a24a67.tar.gz servo-006e71c7dec624935d3d4faf9ea5f783e2a24a67.zip |
style: Make Servo use a single thread-pool for layout-related tasks per-process.
Instead of per-document. This also allows to reuse this thread-pool if needed
for other stuff, like parallel CSS parsing (#22478), and to share more code with
Gecko, which is always nice.
Diffstat (limited to 'components/script/dom')
-rw-r--r-- | components/script/dom/htmliframeelement.rs | 2 | ||||
-rw-r--r-- | components/script/dom/windowproxy.rs | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/components/script/dom/htmliframeelement.rs b/components/script/dom/htmliframeelement.rs index 288584932f0..0e23a04fc39 100644 --- a/components/script/dom/htmliframeelement.rs +++ b/components/script/dom/htmliframeelement.rs @@ -38,7 +38,6 @@ use script_traits::{ WindowSizeData, }; use script_traits::{NewLayoutInfo, ScriptMsg}; -use servo_config::prefs::PREFS; use servo_url::ServoUrl; use std::cell::Cell; use style::attr::{AttrValue, LengthOrPercentageOrAuto}; @@ -204,7 +203,6 @@ impl HTMLIFrameElement { }, device_pixel_ratio: window.device_pixel_ratio(), }, - layout_threads: PREFS.get("layout.threads").as_u64().expect("count") as usize, }; self.pipeline_id.set(Some(new_pipeline_id)); diff --git a/components/script/dom/windowproxy.rs b/components/script/dom/windowproxy.rs index 65362ee0d17..8b0af9a147e 100644 --- a/components/script/dom/windowproxy.rs +++ b/components/script/dom/windowproxy.rs @@ -45,7 +45,6 @@ use msg::constellation_msg::BrowsingContextId; use msg::constellation_msg::PipelineId; use msg::constellation_msg::TopLevelBrowsingContextId; use script_traits::{AuxiliaryBrowsingContextLoadInfo, LoadData, NewLayoutInfo, ScriptMsg}; -use servo_config::prefs::PREFS; use servo_url::ServoUrl; use std::cell::Cell; use std::ptr; @@ -290,7 +289,6 @@ impl WindowProxy { pipeline_port: pipeline_receiver, content_process_shutdown_chan: None, window_size: window.window_size(), - layout_threads: PREFS.get("layout.threads").as_u64().expect("count") as usize, }; let constellation_msg = ScriptMsg::ScriptNewAuxiliary(load_info, pipeline_sender); window.send_to_constellation(constellation_msg); |