style: Remove display: -moz-popup

We already rely on it applying only to XULPopupElement's. Make it
explicit and remove the CSS value.

Differential Revision: https://phabricator.services.mozilla.com/D161552
This commit is contained in:
Emilio Cobos Álvarez 2022-11-09 20:38:04 +00:00 committed by Martin Robinson
parent fd5f04c18e
commit 91626808e9

View file

@ -93,8 +93,6 @@ pub enum DisplayInside {
WebkitBox,
#[cfg(feature = "gecko")]
MozBox,
#[cfg(feature = "gecko")]
MozPopup,
}
#[allow(missing_docs)]
@ -194,8 +192,6 @@ impl Display {
pub const MozBox: Self = Self::new(DisplayOutside::Block, DisplayInside::MozBox);
#[cfg(feature = "gecko")]
pub const MozInlineBox: Self = Self::new(DisplayOutside::Inline, DisplayInside::MozBox);
#[cfg(feature = "gecko")]
pub const MozPopup: Self = Self::new(DisplayOutside::XUL, DisplayInside::MozPopup);
/// Make a raw display value from <display-outside> and <display-inside> values.
#[inline]
@ -558,8 +554,6 @@ impl Parse for Display {
"-moz-box" if moz_display_values_enabled(context) => Display::MozBox,
#[cfg(feature = "gecko")]
"-moz-inline-box" if moz_display_values_enabled(context) => Display::MozInlineBox,
#[cfg(feature = "gecko")]
"-moz-popup" if moz_display_values_enabled(context) => Display::MozPopup,
})
}
}