author Brian Birtles <birtles@gmail.com>
Thu, 24 Jul 2014 13:37:38 +0900
changeset 217447 9345f94814621b287c734d60d07c14988bb56b2d
parent 184742 6abb659b106e04cdb97c7545d986025654972514
child 367407 9f9e3ba9227879d0b85ecb0e6456a3dcac0d0d0b
permissions -rw-r--r--
Bug 1002332 - Make AnimationTimeline record the last refresh time and use that when there is no refresh driver; r=bz A document that belongs to an iframe that is display:none as no associated pres context from which to get a refresh driver. However, in this case document.timeline.currentTime should still never go backwards (since document timelines are supposed to be monotonically increasing). This patch makes AnimationTimeline record the last value returned for the current time so that if the document becomes display:none we can still return the most recently used time.