mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
#8539 Config preferences backend restructure
This commit is contained in:
parent
34fda66dfa
commit
8bfd4dc1e2
53 changed files with 1748 additions and 680 deletions
|
@ -11,6 +11,7 @@ use crate::parallel::STYLE_THREAD_STACK_SIZE_KB;
|
|||
use crate::shared_lock::SharedRwLock;
|
||||
use crate::thread_state;
|
||||
use rayon;
|
||||
use servo_config::pref;
|
||||
use std::env;
|
||||
|
||||
/// Global style data
|
||||
|
@ -69,8 +70,7 @@ lazy_static! {
|
|||
// We always set this pref on startup, before layout or script
|
||||
// have had a chance of accessing (and thus creating) the
|
||||
// thread-pool.
|
||||
use servo_config::prefs::PREFS;
|
||||
PREFS.get("layout.threads").as_u64().unwrap() as usize
|
||||
pref!(layout.threads) as usize
|
||||
}
|
||||
#[cfg(feature = "gecko")]
|
||||
_ => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue