diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-08-07 17:14:48 -0600 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-08-07 17:14:48 -0600 |
commit | d36a10023a9d37a24e2eb182918d790a4b8f55e3 (patch) | |
tree | 5e8e84977c8ee124af7875eeba62bdabe28c50cd /components | |
parent | c202d7b2f6ddf5709a59643a7e62aa2f763adf11 (diff) | |
parent | e40b1414095c615c07c3bd15306cd2de0d2e22d4 (diff) | |
download | servo-d36a10023a9d37a24e2eb182918d790a4b8f55e3.tar.gz servo-d36a10023a9d37a24e2eb182918d790a4b8f55e3.zip |
Auto merge of #7073 - HarryLovesCode:master, r=SimonSapin
Fix requestAnimationFrame timestamps in queue
This resolves #7044 which involved callbacks in a queue not receiving the same timestamp despite the specification saying they should. An extra test was added to verify the correct behavior.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7073)
<!-- Reviewable:end -->
Diffstat (limited to 'components')
-rw-r--r-- | components/script/dom/document.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index 0057ab0bcf7..d60545e159b 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -957,9 +957,10 @@ impl<'a> DocumentHelpers<'a> for &'a Document { let window = window.r(); let performance = window.Performance(); let performance = performance.r(); + let timing = performance.Now(); for (_, callback) in animation_frame_list { - callback(*performance.Now()); + callback(*timing); } window.reflow(ReflowGoal::ForDisplay, |