style: Use static_prefs::pref!.

It's much nicer.

One nice thing about this is that the new code is subject to the existing
threadedness checking, which identified that several of these should be atomic
because they're accessed off the main thread.

Differential Revision: https://phabricator.services.mozilla.com/D40792
This commit is contained in:
Nicholas Nethercote 2019-08-07 22:58:55 +00:00 committed by Emilio Cobos Álvarez
parent ad1d028e40
commit bb032c1ddc
No known key found for this signature in database
GPG key ID: E1152D0994E4BF8A
17 changed files with 26 additions and 60 deletions

View file

@ -91,6 +91,7 @@ extern crate servo_config;
extern crate servo_url;
extern crate smallbitvec;
extern crate smallvec;
extern crate static_prefs;
#[cfg(feature = "servo")]
extern crate string_cache;
#[macro_use]