Skip to content

Commit

Permalink
style: Remove layout.css.xul-box-display-values.survive-blockificatio…
Browse files Browse the repository at this point in the history
…n.enabled.

Differential Revision: https://phabricator.services.mozilla.com/D55898
  • Loading branch information
emilio committed Dec 15, 2019
1 parent 5e7d429 commit f89c311
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions components/style/values/specified/box.rs
Expand Up @@ -389,20 +389,11 @@ impl Display {
};
Display::from3(DisplayOutside::Block, inside, self.is_list_item())
},
// If this pref is true, then we'll blockify "-moz-inline-box" to
// "-moz-box", and blockify "-moz-box" to itself. Otherwise, we
// blockify both to "block".
#[cfg(feature = "gecko")]
DisplayOutside::XUL => {
if static_prefs::pref!(
"layout.css.xul-box-display-values.survive-blockification.enabled"
) {
match self.inside() {
DisplayInside::MozInlineBox | DisplayInside::MozBox => Display::MozBox,
_ => Display::Block,
}
} else {
Display::Block
match self.inside() {
DisplayInside::MozInlineBox | DisplayInside::MozBox => Display::MozBox,
_ => Display::Block,
}
},
DisplayOutside::Block | DisplayOutside::None => *self,
Expand Down

0 comments on commit f89c311

Please sign in to comment.