mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Make MozLength / MaxLength a bit more clear and do a bit less work.
This commit is contained in:
parent
2cf0077be1
commit
45ba167030
2 changed files with 21 additions and 6 deletions
|
@ -888,6 +888,7 @@ pub enum MozLength {
|
|||
|
||||
impl MozLength {
|
||||
/// Returns the `auto` value.
|
||||
#[inline]
|
||||
pub fn auto() -> Self {
|
||||
MozLength::LengthOrPercentageOrAuto(LengthOrPercentageOrAuto::Auto)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue