Bug 1032573 part 4 - Add AnimationTimeline::ToTimelineTime helper method; r=dbaron
commit728dbd075d1205bac3834fe1a27573355ce5b4bf
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)
tree8906a0a18e106235ca56fcd62d29d37a12a2b46b
parent7bb5ae0ed881741ae836ed614f36ffa1892a42be
Bug 1032573 part 4 - Add AnimationTimeline::ToTimelineTime helper method; r=dbaron

This patch simply factors out the conversion from a TimeStamp value to
a nullable-double value relative to the start of the timeline. This is so that,
in a subsequent patch, this functionality can be reused by ElementAnimation
when it reports its start time (which is currently recorded as a TimeStamp).
dom/animation/AnimationTimeline.cpp
dom/animation/AnimationTimeline.h