Bug 1036287 part 4 - Make GetLocalTime(At) get the current time automatically from...
commitf7c2a452ed91eed305e2f23256346f04cc0147f5
authorBrian Birtles <birtles@gmail.com>
Wed, 16 Jul 2014 00:02:32 +0000 (16 09:02 +0900)
committerBrian Birtles <birtles@gmail.com>
Wed, 16 Jul 2014 00:02:32 +0000 (16 09:02 +0900)
tree0b98cc26bf9184812b2195404b9079a3d37c0090
parent8a61f8ccfaff566f9d4762dcb04f3f423be53720
Bug 1036287 part 4 - Make GetLocalTime(At) get the current time automatically from the timeline; r=dholbert

This patch changes ElementAnimation::GetLocalTimeAt so that instead of taking
the current time as input, it uses the animation's mTimeline member to look up
the current time of the associated timeline. As a result of this, it is possible
to remove a few instances of querying the refresh driver for the current time.
Further instances are removed in subsequent patches.

Furthermore, in order to keep the use of time sources consistent, the mStartTime
of new transitions and animations is initialized with the current time from the
animation's timeline rather than with the latest refresh driver tick.
Since this time could, in future, be null, GetLocalTime(At) is updated to check
for a null start time.

GetLocalTimeAt is also renamed to GetLocalTime in the process.
layout/style/AnimationCommon.cpp
layout/style/AnimationCommon.h
layout/style/nsAnimationManager.cpp
layout/style/nsAnimationManager.h
layout/style/nsTransitionManager.cpp
layout/style/nsTransitionManager.h