Bug 1036287 part 2 - Make GetComputedTimingAt take a nullable local time; r=dholbert
commita3a8900375347bbc5a712023aa83e8900d461428
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)
tree31da5f71ca75573734a95d5e51ef043569ce7ff8
parent34ac24b42abc9817f287d49c77c685d5e609bf5c
Bug 1036287 part 2 - Make GetComputedTimingAt take a nullable local time; r=dholbert

As part of supporting arbitrary timelines, we'd like to pass null times to the
function that calculates computed timing. Incidentally, this also provides
a means for evaluating calculating timing parameters that are independent of the
current time (currently only the active duration) without requiring a valid
time.

This patch updates the signature of ElementAnimation::GetComputedTimingAt to
take a nullable time duration.

We use the Nullable wrapper to represent null TimeDurations since, unlike,
TimeStamp, TimeDuration does not include a null state.
layout/style/AnimationCommon.cpp
layout/style/AnimationCommon.h