mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Move impl of ToAnimatedZero for BorderCornerRadius where it belongs
This commit is contained in:
parent
49204e2c72
commit
fb8400d745
2 changed files with 9 additions and 5 deletions
|
@ -953,11 +953,6 @@ impl<T: Animatable + Copy> Animatable for Point2D<T> {
|
|||
}
|
||||
}
|
||||
|
||||
impl ToAnimatedZero for BorderCornerRadius {
|
||||
#[inline]
|
||||
fn to_animated_zero(&self) -> Result<Self, ()> { Err(()) }
|
||||
}
|
||||
|
||||
/// https://drafts.csswg.org/css-transitions/#animtype-length
|
||||
impl Animatable for VerticalAlign {
|
||||
#[inline]
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
//! Computed types for CSS values related to borders.
|
||||
|
||||
use values::animated::ToAnimatedZero;
|
||||
use values::computed::{Number, NumberOrPercentage};
|
||||
use values::computed::length::LengthOrPercentage;
|
||||
use values::generics::border::BorderCornerRadius as GenericBorderCornerRadius;
|
||||
|
@ -34,3 +35,11 @@ impl BorderImageSideWidth {
|
|||
GenericBorderImageSideWidth::Number(1.)
|
||||
}
|
||||
}
|
||||
|
||||
impl ToAnimatedZero for BorderCornerRadius {
|
||||
#[inline]
|
||||
fn to_animated_zero(&self) -> Result<Self, ()> {
|
||||
/// FIXME(nox): Why?
|
||||
Err(())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue