mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +01:00
Use the Separator trait for the filter property
This commit is contained in:
parent
813883e1bd
commit
395f6be0a6
13 changed files with 66 additions and 131 deletions
|
@ -3340,11 +3340,11 @@ impl Animatable for AnimatedFilterList {
|
|||
}
|
||||
}
|
||||
|
||||
Ok(filters.into())
|
||||
Ok(AnimatedFilterList(filters))
|
||||
}
|
||||
|
||||
fn add(&self, other: &Self) -> Result<Self, ()> {
|
||||
Ok(self.0.iter().chain(other.0.iter()).cloned().collect::<Vec<_>>().into())
|
||||
Ok(AnimatedFilterList(self.0.iter().chain(other.0.iter()).cloned().collect()))
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue