gecko/dom/animation
Brian Birtles c9bbacc6bb Bug 1181392 part 1 - Remove use of IsFinishedTransition from Animation::CanThrottle; r=dbaron
Previously we used IsFinishedTransition so that if the only animations present
are finished transitions we could throttle the tick. In fact, this probably
shouldn't even be necessary since we shouldn't be calling CanThrottle if
AnimationCollection::mNeedsRefreshes is false. However, so long as we're
performing this test it turns out we can generalize this further and throttle
ticks for all finished animations that are not newly finished, regardless of
whether they are running on the compositor or not (although this method won't
be called unless the animation property could be run on the compositor anyway).

This method is somewhat confusing. For one, it is not strictly limited to
animations that are running on the compositor. It appears to only return true
when the animation is running on the compositor but the mIsRunningOnCompositor
flag doesn't get cleared when the animation finishes (bug 1151694). As a result
this method also deals with animations that are now running on the main thread.
This patch makes us deal with such animations more consistently.

This patch also reworks this method so that it's hopefully a little easier to
follow and a little more consistent since I spent several hours trying to
understand the different combinations of inputs this method could take and what
question it was trying to answer.
2015-08-07 12:29:35 +09:00
..
test Bug 1178664 - Part 4 -Implement Animation.oncancel event. r=bbirtles, r=smaug 2015-07-30 23:26:00 +02:00
Animation.cpp Bug 1181392 part 1 - Remove use of IsFinishedTransition from Animation::CanThrottle; r=dbaron 2015-08-07 12:29:35 +09:00
Animation.h Bug 1180125 part 2 - Move AnimationCommon classes out of CSS namespace; r=dbaron 2015-07-29 10:57:39 +09:00
AnimationComparator.h Bug 1171817 part 14 - Add AnimationPtrComparator class; r=dbaron 2015-06-09 11:13:54 +09:00
AnimationEffectReadOnly.cpp Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
AnimationEffectReadOnly.h Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
AnimationTimeline.cpp Bug 1182981 part 2 - Use nsTHashtable::Iterator in AnimationTimeline; r=njn 2015-07-21 10:47:23 +09:00
AnimationTimeline.h Bug 1113086 follow-up: Add a forward declaration to fix build bustage 2015-07-10 20:49:32 -04:00
AnimationUtils.h Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
DocumentTimeline.cpp Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
DocumentTimeline.h Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
KeyframeEffect.cpp Bug 1180125 part 2 - Move AnimationCommon classes out of CSS namespace; r=dbaron 2015-07-29 10:57:39 +09:00
KeyframeEffect.h Bug 1180125 part 2 - Move AnimationCommon classes out of CSS namespace; r=dbaron 2015-07-29 10:57:39 +09:00
moz.build Bug 1171817 part 14 - Add AnimationPtrComparator class; r=dbaron 2015-06-09 11:13:54 +09:00
PendingAnimationTracker.cpp Bug 1182981 part 1 - Use nsTHashtable::Iterator in PendingAnimationTracker; r=njn 2015-07-21 10:47:13 +09:00
PendingAnimationTracker.h Bug 1152551, part 3 - Fix more mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00