mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
layout-2020: build fixes.
This commit is contained in:
parent
7d30a7da75
commit
e885ccb7ae
5 changed files with 48 additions and 56 deletions
|
@ -207,15 +207,6 @@ impl<LengthPercentage> MaxSize<LengthPercentage> {
|
|||
pub fn none() -> Self {
|
||||
MaxSize::None
|
||||
}
|
||||
|
||||
/// Convert
|
||||
#[cfg(not(feature = "gecko"))]
|
||||
pub fn to_option(self) -> Option<LengthPercentage> {
|
||||
match self {
|
||||
Self::LengthPercentage(lp) => Some(lp),
|
||||
Self::None => None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// A generic `<length>` | `<number>` value for the `-moz-tab-size` property.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue