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

@ -706,6 +706,11 @@ impl CSSPixelLength {
pub fn abs(self) -> Self {
CSSPixelLength::new(self.0.abs())
}
/// Zero value
pub fn zero() -> Self {
CSSPixelLength::new(0.)
}
}
impl ToCss for CSSPixelLength {