aboutsummaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorHarrison G <Harrison.Gould16@Gmail.com>2015-08-07 09:03:51 -0400
committerHarrison G <Harrison.Gould16@Gmail.com>2015-08-07 19:02:52 -0400
commite40b1414095c615c07c3bd15306cd2de0d2e22d4 (patch)
tree6442a25d2260429f0183af372e6582d5811e0d18 /components
parent0a0fd30eb315172eaa5815c852b4b5dd59a3f0b3 (diff)
downloadservo-e40b1414095c615c07c3bd15306cd2de0d2e22d4.tar.gz
servo-e40b1414095c615c07c3bd15306cd2de0d2e22d4.zip
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.
Diffstat (limited to 'components')
-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,