mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
style: Return an infinite perspective in TransformOperation::Perspective::to_animated_zero
Differential Revision: https://phabricator.services.mozilla.com/D122919
This commit is contained in:
parent
26c5db6a6e
commit
79893116e7
3 changed files with 11 additions and 7 deletions
|
@ -516,8 +516,8 @@ impl ToAnimatedZero for TransformOperation {
|
|||
generic::TransformOperation::Rotate(_) => {
|
||||
Ok(generic::TransformOperation::Rotate(Angle::zero()))
|
||||
},
|
||||
generic::TransformOperation::Perspective(ref l) => Ok(
|
||||
generic::TransformOperation::Perspective(l.to_animated_zero()?),
|
||||
generic::TransformOperation::Perspective(_) => Ok(
|
||||
generic::TransformOperation::Perspective(Length::new(std::f32::INFINITY))
|
||||
),
|
||||
generic::TransformOperation::AccumulateMatrix { .. } |
|
||||
generic::TransformOperation::InterpolateMatrix { .. } => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue