diff options
author | Peter Hall <peterjoel@gmail.com> | 2019-02-14 12:53:59 +0000 |
---|---|---|
committer | Peter Hall <peterjoel@gmail.com> | 2019-03-20 15:01:26 +0000 |
commit | 8bfd4dc1e2f9c71ff3d1f9964565c43a6ae02278 (patch) | |
tree | 3e59f25c2588711f4185c6fbba16af293d1d3453 /components/layout_thread | |
parent | 34fda66dfa5528f2b10a873e9a67417c6986c712 (diff) | |
download | servo-8bfd4dc1e2f9c71ff3d1f9964565c43a6ae02278.tar.gz servo-8bfd4dc1e2f9c71ff3d1f9964565c43a6ae02278.zip |
#8539 Config preferences backend restructure
Diffstat (limited to 'components/layout_thread')
-rw-r--r-- | components/layout_thread/lib.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/components/layout_thread/lib.rs b/components/layout_thread/lib.rs index ecc4153ab71..db48aa483aa 100644 --- a/components/layout_thread/lib.rs +++ b/components/layout_thread/lib.rs @@ -88,7 +88,7 @@ use selectors::Element; use servo_arc::Arc as ServoArc; use servo_atoms::Atom; use servo_config::opts; -use servo_config::prefs::PREFS; +use servo_config::pref; use servo_geometry::MaxRect; use servo_url::ServoUrl; use std::borrow::ToOwned; @@ -536,11 +536,7 @@ impl LayoutThread { element_inner_text_response: String::new(), })), webrender_image_cache: Arc::new(RwLock::new(FnvHashMap::default())), - timer: if PREFS - .get("layout.animations.test.enabled") - .as_boolean() - .unwrap_or(false) - { + timer: if pref!(layout.animations.test.enabled) { Timer::test_mode() } else { Timer::new() |