mirror of
https://github.com/servo/servo.git
synced 2025-08-16 10:55:34 +01:00
stylo: Preserve the variant of scale() values in computed transforms
This commit is contained in:
parent
83e3394904
commit
e74d04c040
4 changed files with 36 additions and 3 deletions
|
@ -1160,6 +1160,9 @@ impl ToAnimatedZero for TransformOperation {
|
|||
TransformOperation::Scale(..) => {
|
||||
Ok(TransformOperation::Scale(1.0, 1.0, 1.0))
|
||||
},
|
||||
TransformOperation::ScaleX(_) => Ok(TransformOperation::ScaleX(1.)),
|
||||
TransformOperation::ScaleY(_) => Ok(TransformOperation::ScaleY(1.)),
|
||||
TransformOperation::ScaleZ(_) => Ok(TransformOperation::ScaleZ(1.)),
|
||||
TransformOperation::Rotate(x, y, z, a) => {
|
||||
let (x, y, z, _) = TransformList::get_normalized_vector_and_angle(x, y, z, a);
|
||||
Ok(TransformOperation::Rotate(x, y, z, Angle::zero()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue