servo/components
bors-servo aba500a698 Auto merge of #9858 - glennw:anim-smoothness, r=pcwalton
Fix animation smoothness when using requestAnimationFrame.

Previously, the flow for ticking animations was:

Compositor -> Constellation -> Layout -> Script

However, this means that the compositor <-> layout messages can thrash, meaning layout thread is very rarely idle.

This means that the script thread (which joins on the layout thread during reflow) was unable to execute and run rAF callbacks.

With this change, the flow is now:

Compositor -> Constellation -> Script (when rAF is active).
Compositor -> Constellation -> Layout (when transitions / animations are active and no rAF is present).

This makes rAF based animation *much* smoother.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9858)
<!-- Reviewable:end -->
2016-03-04 05:50:50 +05:30
..
canvas Indicate components should not be published to crates.io. 2016-03-03 15:04:44 -05:00
canvas_traits Indicate components should not be published to crates.io. 2016-03-03 15:04:44 -05:00
compositing Auto merge of #9858 - glennw:anim-smoothness, r=pcwalton 2016-03-04 05:50:50 +05:30
devtools Indicate components should not be published to crates.io. 2016-03-03 15:04:44 -05:00
devtools_traits Indicate components should not be published to crates.io. 2016-03-03 15:04:44 -05:00
gfx Auto merge of #9843 - pcwalton:optimize-flat-display-lists, r=mrobinson 2016-03-04 02:49:04 +05:30
gfx_traits Indicate components should not be published to crates.io. 2016-03-03 15:04:44 -05:00
layout Auto merge of #9858 - glennw:anim-smoothness, r=pcwalton 2016-03-04 05:50:50 +05:30
layout_traits Indicate components should not be published to crates.io. 2016-03-03 15:04:44 -05:00
msg Indicate components should not be published to crates.io. 2016-03-03 15:04:44 -05:00
net Indicate components should not be published to crates.io. 2016-03-03 15:04:44 -05:00
net_traits Indicate components should not be published to crates.io. 2016-03-03 15:04:44 -05:00
plugins Indicate components should not be published to crates.io. 2016-03-03 15:04:44 -05:00
profile Indicate components should not be published to crates.io. 2016-03-03 15:04:44 -05:00
profile_traits Indicate components should not be published to crates.io. 2016-03-03 15:04:44 -05:00
range Indicate components should not be published to crates.io. 2016-03-03 15:04:44 -05:00
script Auto merge of #9832 - metajack:suppress-reflows, r=mbrubeck 2016-03-04 04:00:30 +05:30
script_traits Indicate components should not be published to crates.io. 2016-03-03 15:04:44 -05:00
servo Indicate components should not be published to crates.io. 2016-03-03 15:04:44 -05:00
style Indicate components should not be published to crates.io. 2016-03-03 15:04:44 -05:00
style_traits Indicate components should not be published to crates.io. 2016-03-03 15:04:44 -05:00
util Auto merge of #9843 - pcwalton:optimize-flat-display-lists, r=mrobinson 2016-03-04 02:49:04 +05:30
webdriver_server Indicate components should not be published to crates.io. 2016-03-03 15:04:44 -05:00