mirror of
https://github.com/servo/servo.git
synced 2025-08-02 12:10:29 +01:00
style: Make animation functions as generic as possible.
This commit is contained in:
parent
058bfb39ae
commit
f389cf61c4
2 changed files with 14 additions and 12 deletions
|
@ -121,6 +121,7 @@ pub struct KeyframesStep {
|
|||
}
|
||||
|
||||
impl KeyframesStep {
|
||||
#[inline]
|
||||
fn new(percentage: KeyframePercentage,
|
||||
declarations: Arc<Vec<PropertyDeclaration>>) -> Self {
|
||||
KeyframesStep {
|
||||
|
@ -156,6 +157,7 @@ fn get_animated_properties(keyframe: &Keyframe) -> Vec<TransitionProperty> {
|
|||
ret.push(property);
|
||||
}
|
||||
}
|
||||
|
||||
ret
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue