Skip to content
Permalink
Browse files

style: Remove layout.css.xul-box-display-values.survive-blockificatio…

…n.enabled.

Differential Revision: https://phabricator.services.mozilla.com/D55898
  • Loading branch information
emilio committed Dec 5, 2019
1 parent 5e7d429 commit f89c31120f7c8fbcf7a3c8e48b65c6e3fce6c488
Showing with 3 additions and 12 deletions.
  1. +3 −12 components/style/values/specified/box.rs
@@ -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,

0 comments on commit f89c311

Please sign in to comment.
You can’t perform that action at this time.