mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
style: Teach ComputeSquaredDistance derive about #[animation(constant)].
Differential Revision: https://phabricator.services.mozilla.com/D5337
This commit is contained in:
parent
0ecd671f52
commit
25db9e3be7
5 changed files with 29 additions and 37 deletions
|
@ -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>>>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue