mirror of
https://github.com/servo/servo.git
synced 2025-09-04 12:08:21 +01:00
Properly implement ToAnimatedZero for BorderSpacing
This commit is contained in:
parent
b17fea1d7f
commit
52f0fcabad
4 changed files with 15 additions and 10 deletions
|
@ -380,3 +380,16 @@ where
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> ToAnimatedZero for Size2D<T>
|
||||
where
|
||||
T: ToAnimatedZero,
|
||||
{
|
||||
#[inline]
|
||||
fn to_animated_zero(&self) -> Result<Self, ()> {
|
||||
Ok(Size2D::new(
|
||||
self.width.to_animated_zero()?,
|
||||
self.height.to_animated_zero()?,
|
||||
))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue