mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Fix perspective interpolation.
It's not sound to insert random matrices in random positions in the transform operation list. I cannot make any sense of what the old code was trying to do. Bug: 1458715 Reviewed-by: hiro MozReview-Commit-ID: 5BtCiueEPlR
This commit is contained in:
parent
9d721072f5
commit
0ef70d52f2
2 changed files with 8 additions and 23 deletions
|
@ -251,11 +251,11 @@ impl ToAnimatedZero for TransformOperation {
|
|||
generic::TransformOperation::Rotate(_) => {
|
||||
Ok(generic::TransformOperation::Rotate(Angle::zero()))
|
||||
},
|
||||
generic::TransformOperation::Perspective(..) |
|
||||
generic::TransformOperation::Perspective(ref l) => {
|
||||
Ok(generic::TransformOperation::Perspective(l.to_animated_zero()?))
|
||||
},
|
||||
generic::TransformOperation::AccumulateMatrix { .. } |
|
||||
generic::TransformOperation::InterpolateMatrix { .. } => {
|
||||
// Perspective: We convert a perspective function into an equivalent
|
||||
// ComputedMatrix, and then decompose/interpolate/recompose these matrices.
|
||||
// AccumulateMatrix/InterpolateMatrix: We do interpolation on
|
||||
// AccumulateMatrix/InterpolateMatrix by reading it as a ComputedMatrix
|
||||
// (with layout information), and then do matrix interpolation.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue