gecko-dev/dom/animation/test/crashtests
Brian Birtles 525200b457 Bug 1411318 - Don't consider an animation playing if its timeline is inactive; r=hiro
When we receive animations on the compositor, we assert that either they're not
playing, or they have a resolved start and origin time.

However, on the main thread we determine if an animation is playing by checking
if it has a timeline, if it's in the correct state, and if it has a non-zero
playback rate.

The problem with this check is that if an animation has a timeline but it is
inactive, that is, its current time is null, we will not be able to get
a resolved origin time -- yet we will still report that is is playing.

This patch fixes this mismatch by treating animations with an inactive timeline
as "not playing".

The IsPlaying() method is used a number of call sites but it appears that they
all would expect an animation with an inactive timeline to be considered "not
playing". Furthermore, this makes IsPlaying() consistent with the check we do
for an active timeline in other functions such as Animation::Tick(),
TriggerNow(), SilentlySetCurrentTime(), UpdateFinishedState(),
and IsPossibleOrphanedPendingAnimation().


MozReview-Commit-ID: BQOBpHHFMoD

--HG--
extra : rebase_source : e84a50a16a61d48553610cb7ea0863f09ba86c60
2017-10-26 10:18:42 +09:00
..
1216842-1.html
1216842-2.html
1216842-3.html
1216842-4.html
1216842-5.html
1216842-6.html
1239889-1.html Bug 1343884 - Add a tweak to cause a MozAfterPaint in 1239889-1.html. r=boris DONTBUILD 2017-04-28 13:17:34 +09:00
1244595-1.html
1272475-1.html
1272475-2.html
1277272-1-inner.html
1277272-1.html
1278485-1.html
1282691-1.html Bug 1282691 - Drop the assertion about an animation that we're making play-pending not already being pause-pending; r=boris 2017-10-13 14:37:51 +09:00
1291413-1.html Bug 1291413 - Fix assertion when resuming an Animation with both a start time and hold time; r=hiro 2017-10-05 10:50:38 +09:00
1291413-2.html Bug 1291413 - Fix assertion when resuming an Animation with both a start time and hold time; r=hiro 2017-10-05 10:50:38 +09:00
1304886-1.html
1322291-1.html
1322291-2.html
1322382-1.html
1323114-1.html
1323114-2.html
1324554-1.html
1325193-1.html
1330190-1.html
1330190-2.html Bug 1331047: Fix another instance of a test relying on animating an non-existing pseudo-element. r=hiro 2017-04-27 17:08:31 +02:00
1330513-1.html
1333539-1.html
1333539-2.html
1334582-1.html Bug 1334582 - Use UINT64_MAX instead of IsInfinite() for checking whether TimingParans.mIterations is infinite or not. r=boris 2017-09-12 08:42:45 +09:00
1334582-2.html Bug 1334582 - Check whether overall progress exceeds UINT64_MAX. r=boris 2017-09-12 08:42:54 +09:00
1334583-1.html Bug 1334583 - Pass a separate timeOrigin and startTime for compositor animations; r=hiro 2017-05-02 16:49:51 +09:00
1335998-1.html Bug 1335998 - Part 3: Add a crashtest for mismatched transform lists. r=hiro 2017-06-03 16:56:03 +08:00
1343589-1.html Bug 1343589 - Add a crashtest for when reverse() throws r=hiro 2017-03-28 14:51:52 +09:00
1359658-1.html Bug 1359658 - Crashtest for clearing animation-only dirty descendants bit on display:none descendants; r=hiro 2017-04-26 14:31:23 +09:00
1373712-1.html Bug 1373712 - Part 2: Add a crashtest with large color value. r=birtles 2017-06-21 13:53:27 +08:00
1379606-1.html Bug 1379505: Allow calling GetBaseComputedStylesForElement for an unstyled element. r=boris 2017-07-10 13:33:21 +02:00
1393605-1.html Bug 1393605 - Fix gecko assertion and add one crashtest. r=birtles 2017-08-31 11:11:09 +08:00
1400022-1.html Bug 1400022 - Crash test. r=hiro 2017-09-19 13:58:31 +09:00
1401809.html Bug 1401809 - Use Atom::from(nsIAtom) to increment reference count in case of dynamic atom for will-change. r=xidorn 2017-09-21 15:50:37 +09:00
1411318-1.html Bug 1411318 - Don't consider an animation playing if its timeline is inactive; r=hiro 2017-10-26 10:18:42 +09:00
crashtests.list Bug 1411318 - Don't consider an animation playing if its timeline is inactive; r=hiro 2017-10-26 10:18:42 +09:00