mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Allow cross interpolation between differing translate/scale functions
See ToPrimitive() in StyleAnimationValue.cpp
This commit is contained in:
parent
f699b8cfb2
commit
9c9a181f35
4 changed files with 12 additions and 3 deletions
|
@ -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::*;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue