style: Make animation functions as generic as possible.

This commit is contained in:
Emilio Cobos Álvarez 2016-06-18 15:52:28 +02:00
parent 058bfb39ae
commit f389cf61c4
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 14 additions and 12 deletions

View file

@ -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
}