style: Teach ComputeSquaredDistance derive about #[animation(constant)].

Differential Revision: https://phabricator.services.mozilla.com/D5337
This commit is contained in:
Emilio Cobos Álvarez 2018-09-08 00:43:58 +02:00
parent 0ecd671f52
commit 25db9e3be7
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
5 changed files with 29 additions and 37 deletions

View file

@ -538,13 +538,6 @@ impl ToCss for ArcFlag {
}
}
impl ComputeSquaredDistance for ArcFlag {
#[inline]
fn compute_squared_distance(&self, other: &Self) -> Result<SquaredDistance, ()> {
(self.0 as i32).compute_squared_distance(&(other.0 as i32))
}
}
/// SVG Path parser.
struct PathParser<'a> {
chars: Peekable<Cloned<slice::Iter<'a, u8>>>,