Allow cross interpolation between differing translate/scale functions

See ToPrimitive() in StyleAnimationValue.cpp
This commit is contained in:
Manish Goregaokar 2017-10-30 18:01:32 -07:00
parent f699b8cfb2
commit 9c9a181f35
No known key found for this signature in database
GPG key ID: 3BBF4D3E2EF79F98
4 changed files with 12 additions and 3 deletions

View file

@ -249,7 +249,6 @@ pub struct Transform<T>(pub Vec<T>);
impl<Angle, Number, Length, Integer, LengthOrNumber, LengthOrPercentage, LoPoNumber>
TransformOperation<Angle, Number, Length, Integer, LengthOrNumber, LengthOrPercentage, LoPoNumber> {
/// Check if it is any translate function
pub fn is_translate(&self) -> bool {
use self::TransformOperation::*;