Bug 1032573 part 3 - Add AnimationTimeline::GetCurrentTimeStamp; r=dbaron
commit7bb5ae0ed881741ae836ed614f36ffa1892a42be
authorBrian Birtles <birtles@gmail.com>
Wed, 16 Jul 2014 00:02:30 +0000 (16 09:02 +0900)
committerBrian Birtles <birtles@gmail.com>
Wed, 16 Jul 2014 00:02:30 +0000 (16 09:02 +0900)
tree7a5d1bb44be2b511b1331d04dfb46c15cd2f0acb
parent9454e09015a4ac747594188adce0054964c8651a
Bug 1032573 part 3 - Add AnimationTimeline::GetCurrentTimeStamp; r=dbaron

AnimationTimeline::GetCurrentTime returns the time value of the timeline as
a double. For internal calculations however it is more useful to get this as
a mozilla::TimeStamp.

This patch splits the calculation of the current time into two stages:
calculation as a timestamp then conversion to a double.
dom/animation/AnimationTimeline.cpp
dom/animation/AnimationTimeline.h