stylo: Fix TransformOperation.animate() implementation

This commit is contained in:
Manish Goregaokar 2017-09-13 15:37:52 -07:00
parent 06300999e9
commit a7a5adb71a
2 changed files with 67 additions and 1 deletions

View file

@ -128,7 +128,7 @@ impl TransformList {
Transform3D::create_translation(0., ty, 0.)
}
ComputedOperation::TranslateZ(tz) => {
Transform3D::create_translation(0., 0., tz.to_f32_px())
Transform3D::create_translation(0., 0., tz.px())
}
ComputedOperation::Translate(tx, ty, tz) => {
let (tx, ty) = match reference_box {