mirror of
https://github.com/servo/servo.git
synced 2025-08-01 03:30:33 +01:00
style: Remove layout.css.xul-box-display-values.survive-blockification.enabled.
Differential Revision: https://phabricator.services.mozilla.com/D55898
This commit is contained in:
parent
5e7d429c0a
commit
f89c31120f
1 changed files with 3 additions and 12 deletions
|
@ -389,21 +389,12 @@ impl Display {
|
||||||
};
|
};
|
||||||
Display::from3(DisplayOutside::Block, inside, self.is_list_item())
|
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")]
|
#[cfg(feature = "gecko")]
|
||||||
DisplayOutside::XUL => {
|
DisplayOutside::XUL => {
|
||||||
if static_prefs::pref!(
|
|
||||||
"layout.css.xul-box-display-values.survive-blockification.enabled"
|
|
||||||
) {
|
|
||||||
match self.inside() {
|
match self.inside() {
|
||||||
DisplayInside::MozInlineBox | DisplayInside::MozBox => Display::MozBox,
|
DisplayInside::MozInlineBox | DisplayInside::MozBox => Display::MozBox,
|
||||||
_ => Display::Block,
|
_ => Display::Block,
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
Display::Block
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
DisplayOutside::Block | DisplayOutside::None => *self,
|
DisplayOutside::Block | DisplayOutside::None => *self,
|
||||||
#[cfg(any(feature = "servo-layout-2013", feature = "gecko"))]
|
#[cfg(any(feature = "servo-layout-2013", feature = "gecko"))]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue