mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Fix gecko build.
This commit is contained in:
parent
059a50bba0
commit
97f29c893f
7 changed files with 27 additions and 34 deletions
|
@ -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 element’s display type, which consists of
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue