mirror of
https://github.com/servo/servo.git
synced 2025-08-08 23:15:33 +01:00
Refactor util::prefs
operations to be methods on static struct.
This commit is contained in:
parent
307844a8c1
commit
22928f50ac
30 changed files with 166 additions and 162 deletions
|
@ -59,7 +59,7 @@
|
|||
% for value in values:
|
||||
"${value}" => {
|
||||
% if value in experimental_values:
|
||||
if !::util::prefs::get_pref("layout.${value}.enabled")
|
||||
if !::util::prefs::PREFS.get("layout.${value}.enabled")
|
||||
.as_boolean().unwrap_or(false) {
|
||||
return Err(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue