gecko/dom/animation
Brian Birtles f81615613a Bug 1112480 part 5 - Add AnimationTimeline::IsUnderTestControl; r=jwatt
Earlier in this patch series we added AnimationPlayer::StartOnNextTick which
takes a ready time parameter expressed in timeline time. In order to call this
method when painting finishes we need to convert the TimeStamp recorded when
painting finished to a timeline time. However, when the timeline is driven by
a refresh driver under test control we can no longer meaningfully do this
conversion since there is no correspondence between the notion of time used to
record the time when painting finished (wallclock time) and the notion of time
used by the timeline (which has been arbitrarily adjusted by test code).

We need a way to detect this situation so that we know not to call
ToTimelineTime in that case.

Alternatively, we could make ToTimelineTime automatically return a null value
when its refresh driver is under test control. However, in this situation
ToTimelineTime can still actually be used to convert a TimeStamp to a timeline
time as long as the TimeStamp is from the same refresh driver. Indeed,
GetCurrentTime does exactly that. So if we were to go down that route we would
have to provide a way for GetCurrentTime to work around that restriction.

For now, this patch puts the onus on the caller of ToTimelineTime to check if
the timeline is under test control first (unless they are passing a TimeStamp
from the same refresh driver, in which case there is no need to check).
2015-01-09 07:57:58 +09:00
..
test Bug 1112480 part 1 - Adjust tests to accommodate changed animation start behavior; r=jwatt 2015-01-09 07:57:58 +09:00
Animation.cpp Bug 1078122 part 3 - Move animation value building down to the Animation objects; r=dholbert 2014-10-20 13:55:46 +09:00
Animation.h Bug 1078122 part 9 - Move queuing of CSS animation events to CSSAnimationPlayer; r=dholbert 2014-10-20 13:55:47 +09:00
AnimationEffect.cpp Bug 1045993 part 1 - Add AnimationEffect interface and Animation.effect member; r=dbaron, r=bz 2014-08-22 13:42:47 +01:00
AnimationEffect.h Bug 1078744 - Replace SetIsDOMBinding with SetIsNonDOMBinding, remove nsWrapperCache::SetIsDOMBinding. r=bz. 2014-10-07 11:44:49 +02:00
AnimationPlayer.cpp Bug 1112480 part 4 - Use mPendingReadyTime in AnimationPlayer::Tick; r=jwatt 2015-01-09 07:57:58 +09:00
AnimationPlayer.h Bug 1112480 part 3 - Add AnimationPlayer::StartOnNextTick; r=jwatt 2015-01-09 07:57:58 +09:00
AnimationTimeline.cpp Bug 1113413 - Make refresh driver go back immediately when restored from test control; r=vlad 2015-01-06 10:56:02 +09:00
AnimationTimeline.h Bug 1112480 part 5 - Add AnimationTimeline::IsUnderTestControl; r=jwatt 2015-01-09 07:57:58 +09:00
AnimationUtils.h Bug 1072299 - Build dom/animation in unified mode; r=baku 2014-09-25 10:11:43 -04:00
moz.build Bug 927349 part 1 - Add PendingPlayerTracker; r=jwatt 2014-12-18 08:42:41 +09:00
PendingPlayerTracker.cpp Bug 927349 part 15 - Schedule a paint when a new pending animation is added; r=jwatt 2014-12-22 09:35:41 +09:00
PendingPlayerTracker.h Bug 927349 part 16 - Do a full reflow when we have pending animations; r=jwatt 2014-12-22 09:35:41 +09:00