servo/components/script
bors-servo bc44ae679f Auto merge of #9401 - glennw:raf-timing, r=jdm
Fixes additional calls to rAF.

Often, a rAF callback will request another rAF from the callback itself.

Previously, the constellation would quickly receive two messages saying
that there were no animations, and then there are animations again in the
situation above. This would make the compositor tick the new animation straight
away, causing strange fluctuations and timings in rAF callbacks.

Instead, only send the NoAnimationCallbacks message if the animation
callback queue is still empty after invoking the callbacks.

This fixes rAF timing, which now runs at the correct (vsync) framerate.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9401)
<!-- Reviewable:end -->
2016-01-28 11:18:24 +05:30
..
docs Move the DOM memory management blog post into the tree. 2015-10-29 17:25:00 +01:00
dom Auto merge of #9401 - glennw:raf-timing, r=jdm 2016-01-28 11:18:24 +05:30
parse Update html5ever and xml5ever for API changes. 2016-01-27 12:25:16 +01:00
build.rs
Cargo.toml Update html5ever and xml5ever for API changes. 2016-01-27 12:25:16 +01:00
clipboard_provider.rs Remove unused imports in script 2016-01-17 12:41:28 +05:30
cors.rs task -> thread 2016-01-10 17:58:13 +09:00
devtools.rs task -> thread 2016-01-10 17:58:13 +09:00
document_loader.rs task -> thread 2016-01-10 17:58:13 +09:00
layout_interface.rs Auto merge of #9245 - Ms2ger:reexports, r=nox 2016-01-11 23:57:51 +05:30
lib.rs Update html5ever and xml5ever for API changes. 2016-01-27 12:25:16 +01:00
makefile.cargo Fix spurious rebuilds of the script crate 2015-10-08 21:37:56 -07:00
mem.rs more refactoring 2015-10-30 20:26:29 +09:00
network_listener.rs task -> thread 2016-01-10 17:58:13 +09:00
page.rs Auto merge of #8481 - frewsxcv:iterablepage-iter, r=Ms2ger 2015-11-12 18:29:12 +05:30
reporter.rs Hoist ParseErrorReporter into style and remove the dependency on msg. 2016-01-11 18:01:48 -08:00
script_thread.rs Make iframe's load event trigger a reflow of the enclosing window. Add a catch-all reflow for all same-origin pages sharing an event loop.a 2016-01-26 16:37:23 -05:00
textinput.rs Fix warnings: Use Vec.extend_from_slice instead of Vec.push_all 2015-12-10 16:49:29 -05:00
timers.rs Add global default method for Reflectable trait 2016-01-11 20:23:47 -05:00
unpremultiplytable.rs add un-premultiply table for GetImageData 2015-10-20 04:51:29 -04:00
webdriver_handlers.rs task -> thread 2016-01-10 17:58:13 +09:00