Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
style: Fix a warning in layout-2020
  • Loading branch information
emilio committed Jun 18, 2020
1 parent bb8c3ee commit a7d7403
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions components/style/values/specified/box.rs
Expand Up @@ -34,18 +34,19 @@ fn moz_box_display_values_enabled(context: &ParserContext) -> bool {
static_prefs::pref!("layout.css.xul-box-display-values.content.enabled")
}

#[cfg(not(feature = "servo-layout-2020"))]
fn flexbox_enabled() -> bool {
#[cfg(feature = "servo-layout-2020")]
{
return servo_config::prefs::pref_map()
.get("layout.flexbox.enabled")
.as_bool()
.unwrap_or(false);
}

true
}

#[cfg(feature = "servo-layout-2020")]
fn flexbox_enabled() -> bool {
servo_config::prefs::pref_map()
.get("layout.flexbox.enabled")
.as_bool()
.unwrap_or(false)
}

/// Defines an element’s display type, which consists of
/// the two basic qualities of how an element generates boxes
/// <https://drafts.csswg.org/css-display/#propdef-display>
Expand Down

0 comments on commit a7d7403

Please sign in to comment.