style: Fix gecko build.

This commit is contained in:
Emilio Cobos Álvarez 2020-06-18 20:03:04 +02:00
parent 059a50bba0
commit 97f29c893f
No known key found for this signature in database
GPG key ID: E1152D0994E4BF8A
7 changed files with 27 additions and 34 deletions

View file

@ -35,14 +35,15 @@ fn moz_box_display_values_enabled(context: &ParserContext) -> bool {
}
fn flexbox_enabled() -> bool {
if cfg!(feature = "servo-layout-2020") {
servo_config::prefs::pref_map()
#[cfg(feature = "servo-layout-2020")]
{
return servo_config::prefs::pref_map()
.get("layout.flexbox.enabled")
.as_bool()
.unwrap_or(false)
} else {
true
}
true
}
/// Defines an elements display type, which consists of