aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-08-07 17:14:48 -0600
committerbors-servo <metajack+bors@gmail.com>2015-08-07 17:14:48 -0600
commitd36a10023a9d37a24e2eb182918d790a4b8f55e3 (patch)
tree5e8e84977c8ee124af7875eeba62bdabe28c50cd /components/script
parentc202d7b2f6ddf5709a59643a7e62aa2f763adf11 (diff)
parente40b1414095c615c07c3bd15306cd2de0d2e22d4 (diff)
downloadservo-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/script')
-rw-r--r--components/script/dom/document.rs3
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,