mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
style: Remove display:-moz-inline-grid/-moz-inline-stack.
Differential Revision: https://phabricator.services.mozilla.com/D42552
This commit is contained in:
parent
d794c8527d
commit
dd5715d4f1
1 changed files with 0 additions and 17 deletions
|
@ -105,16 +105,12 @@ pub enum DisplayInside {
|
||||||
#[cfg(feature = "gecko")]
|
#[cfg(feature = "gecko")]
|
||||||
MozGrid,
|
MozGrid,
|
||||||
#[cfg(feature = "gecko")]
|
#[cfg(feature = "gecko")]
|
||||||
MozInlineGrid,
|
|
||||||
#[cfg(feature = "gecko")]
|
|
||||||
MozGridGroup,
|
MozGridGroup,
|
||||||
#[cfg(feature = "gecko")]
|
#[cfg(feature = "gecko")]
|
||||||
MozGridLine,
|
MozGridLine,
|
||||||
#[cfg(feature = "gecko")]
|
#[cfg(feature = "gecko")]
|
||||||
MozStack,
|
MozStack,
|
||||||
#[cfg(feature = "gecko")]
|
#[cfg(feature = "gecko")]
|
||||||
MozInlineStack,
|
|
||||||
#[cfg(feature = "gecko")]
|
|
||||||
MozDeck,
|
MozDeck,
|
||||||
#[cfg(feature = "gecko")]
|
#[cfg(feature = "gecko")]
|
||||||
MozGroupbox,
|
MozGroupbox,
|
||||||
|
@ -243,16 +239,12 @@ impl Display {
|
||||||
#[cfg(feature = "gecko")]
|
#[cfg(feature = "gecko")]
|
||||||
pub const MozGrid: Self = Self::new(DisplayOutside::XUL, DisplayInside::MozGrid);
|
pub const MozGrid: Self = Self::new(DisplayOutside::XUL, DisplayInside::MozGrid);
|
||||||
#[cfg(feature = "gecko")]
|
#[cfg(feature = "gecko")]
|
||||||
pub const MozInlineGrid: Self = Self::new(DisplayOutside::XUL, DisplayInside::MozInlineGrid);
|
|
||||||
#[cfg(feature = "gecko")]
|
|
||||||
pub const MozGridGroup: Self = Self::new(DisplayOutside::XUL, DisplayInside::MozGridGroup);
|
pub const MozGridGroup: Self = Self::new(DisplayOutside::XUL, DisplayInside::MozGridGroup);
|
||||||
#[cfg(feature = "gecko")]
|
#[cfg(feature = "gecko")]
|
||||||
pub const MozGridLine: Self = Self::new(DisplayOutside::XUL, DisplayInside::MozGridLine);
|
pub const MozGridLine: Self = Self::new(DisplayOutside::XUL, DisplayInside::MozGridLine);
|
||||||
#[cfg(feature = "gecko")]
|
#[cfg(feature = "gecko")]
|
||||||
pub const MozStack: Self = Self::new(DisplayOutside::XUL, DisplayInside::MozStack);
|
pub const MozStack: Self = Self::new(DisplayOutside::XUL, DisplayInside::MozStack);
|
||||||
#[cfg(feature = "gecko")]
|
#[cfg(feature = "gecko")]
|
||||||
pub const MozInlineStack: Self = Self::new(DisplayOutside::XUL, DisplayInside::MozInlineStack);
|
|
||||||
#[cfg(feature = "gecko")]
|
|
||||||
pub const MozDeck: Self = Self::new(DisplayOutside::XUL, DisplayInside::MozDeck);
|
pub const MozDeck: Self = Self::new(DisplayOutside::XUL, DisplayInside::MozDeck);
|
||||||
#[cfg(feature = "gecko")]
|
#[cfg(feature = "gecko")]
|
||||||
pub const MozGroupbox: Self = Self::new(DisplayOutside::XUL, DisplayInside::MozGroupbox);
|
pub const MozGroupbox: Self = Self::new(DisplayOutside::XUL, DisplayInside::MozGroupbox);
|
||||||
|
@ -422,7 +414,6 @@ impl Display {
|
||||||
#[cfg(feature = "gecko")]
|
#[cfg(feature = "gecko")]
|
||||||
DisplayOutside::XUL => match self.inside() {
|
DisplayOutside::XUL => match self.inside() {
|
||||||
DisplayInside::MozBox => Display::MozInlineBox,
|
DisplayInside::MozBox => Display::MozInlineBox,
|
||||||
DisplayInside::MozStack => Display::MozInlineStack,
|
|
||||||
_ => *self,
|
_ => *self,
|
||||||
},
|
},
|
||||||
_ => *self,
|
_ => *self,
|
||||||
|
@ -469,10 +460,6 @@ impl ToCss for Display {
|
||||||
Display::WebkitInlineBox => dest.write_str("-webkit-inline-box"),
|
Display::WebkitInlineBox => dest.write_str("-webkit-inline-box"),
|
||||||
#[cfg(feature = "gecko")]
|
#[cfg(feature = "gecko")]
|
||||||
Display::MozInlineBox => dest.write_str("-moz-inline-box"),
|
Display::MozInlineBox => dest.write_str("-moz-inline-box"),
|
||||||
#[cfg(feature = "gecko")]
|
|
||||||
Display::MozInlineGrid => dest.write_str("-moz-inline-grid"),
|
|
||||||
#[cfg(feature = "gecko")]
|
|
||||||
Display::MozInlineStack => dest.write_str("-moz-inline-stack"),
|
|
||||||
#[cfg(any(feature = "servo-layout-2013", feature = "gecko"))]
|
#[cfg(any(feature = "servo-layout-2013", feature = "gecko"))]
|
||||||
Display::TableCaption => dest.write_str("table-caption"),
|
Display::TableCaption => dest.write_str("table-caption"),
|
||||||
_ => match (outside, inside) {
|
_ => match (outside, inside) {
|
||||||
|
@ -662,16 +649,12 @@ impl Parse for Display {
|
||||||
#[cfg(feature = "gecko")]
|
#[cfg(feature = "gecko")]
|
||||||
"-moz-grid" if moz_display_values_enabled(context) => Display::MozGrid,
|
"-moz-grid" if moz_display_values_enabled(context) => Display::MozGrid,
|
||||||
#[cfg(feature = "gecko")]
|
#[cfg(feature = "gecko")]
|
||||||
"-moz-inline-grid" if moz_display_values_enabled(context) => Display::MozInlineGrid,
|
|
||||||
#[cfg(feature = "gecko")]
|
|
||||||
"-moz-grid-group" if moz_display_values_enabled(context) => Display::MozGridGroup,
|
"-moz-grid-group" if moz_display_values_enabled(context) => Display::MozGridGroup,
|
||||||
#[cfg(feature = "gecko")]
|
#[cfg(feature = "gecko")]
|
||||||
"-moz-grid-line" if moz_display_values_enabled(context) => Display::MozGridLine,
|
"-moz-grid-line" if moz_display_values_enabled(context) => Display::MozGridLine,
|
||||||
#[cfg(feature = "gecko")]
|
#[cfg(feature = "gecko")]
|
||||||
"-moz-stack" if moz_display_values_enabled(context) => Display::MozStack,
|
"-moz-stack" if moz_display_values_enabled(context) => Display::MozStack,
|
||||||
#[cfg(feature = "gecko")]
|
#[cfg(feature = "gecko")]
|
||||||
"-moz-inline-stack" if moz_display_values_enabled(context) => Display::MozInlineStack,
|
|
||||||
#[cfg(feature = "gecko")]
|
|
||||||
"-moz-deck" if moz_display_values_enabled(context) => Display::MozDeck,
|
"-moz-deck" if moz_display_values_enabled(context) => Display::MozDeck,
|
||||||
#[cfg(feature = "gecko")]
|
#[cfg(feature = "gecko")]
|
||||||
"-moz-groupbox" if moz_display_values_enabled(context) => Display::MozGroupbox,
|
"-moz-groupbox" if moz_display_values_enabled(context) => Display::MozGroupbox,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue