diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-09-21 03:16:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-21 03:16:58 -0500 |
commit | ce7cee75e4c0c8357b489be42589d96348870627 (patch) | |
tree | 87c0083290698ea20dda345020e1ce349655358e /components/script/dom/promise.rs | |
parent | 39f8fce453f0a34751abb82485442429f06324bf (diff) | |
parent | 21148c7e5183f0799745d67bfadf860c442baf3d (diff) | |
download | servo-ce7cee75e4c0c8357b489be42589d96348870627.tar.gz servo-ce7cee75e4c0c8357b489be42589d96348870627.zip |
Auto merge of #18591 - chenpighead:stylo-singular-matrix-animation, r=BorisChiou
stylo: do not handle the fallback discrete animation inside the Animate trait
At present, we do the fallback discrete animation for non-invertible matrices in
ComputedMatrix.animate(). However, according to the spec, we should fallback to
discrete animation for cases like:
1. animation between transform with single non-invertible matrix
2. animation between transform with matched transform functions that have at least
one non-invertible matrix
2. animation between transform with mismatched transform functions that have at
least one non-invertible matrix.
The current implementation only handles the first case.
Moreover, we already have fallback discrete animation procedures in CSS Animation
and Web Animation, so we should be able to not doing any fallback inside the
Animate trait.
In this patch, we let the animation between non-invertible matrices to return Err().
So, we can propagate the Err() to the callers, and let the fallback discrete
animation procedure stay at the Servo_MatrixTransform_Operate, which is ouside
the Animate trait.
Gecko bug: [Bug 1394284](https://bugzilla.mozilla.org/show_bug.cgi?id=1394284)
---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix [Bug 1394284](https://bugzilla.mozilla.org/show_bug.cgi?id=1394284)
- [X] There are wpt tests for these changes, and thet will be landed in [Bug 1394284](https://bugzilla.mozilla.org/show_bug.cgi?id=1394284)
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18591)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/promise.rs')
0 files changed, 0 insertions, 0 deletions