servo/components/script
bors-servo 7d02c2055d Auto merge of #11341 - nox:raf, r=pcwalton
Use a simple Vec for the animation frame list

Adding an animation frame list is now just pushing a new pair onto the vector,
while canceling one is setting its callback to None.

This means we can't send NoAnimationCallbacksPresent anymore to the constellation
when all entries were cancelled, but I'm not sure that's very important anyway.

The good downside of this change is that when running the callbacks, if no
new one was queued during their execution, we can just swap back the original Vec
into the Document in run_the_animation_frame_callbacks, thus reusing the
original allocation.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11341)
<!-- Reviewable:end -->
2016-05-23 10:50:37 -07:00
..
docs Move the DOM memory management blog post into the tree. 2015-10-29 17:25:00 +01:00
dom Auto merge of #11341 - nox:raf, r=pcwalton 2016-05-23 10:50:37 -07:00
parse Removed unused imports 2016-05-15 22:24:26 +03:00
task_source Removed unused imports 2016-05-15 22:24:26 +03:00
build.rs
Cargo.toml Update string_cache to 0.2.17 2016-05-23 09:19:14 -04:00
clipboard_provider.rs Remove ConstellationChan. 2016-05-19 17:13:44 +02:00
cors.rs Upgrade to rust-url 1.0 and hyper 0.9 2016-04-23 20:27:58 +02:00
devtools.rs removed instances of &Root<BrowsingContext> 2016-05-11 13:21:16 -06:00
document_loader.rs adding interface for custom responses 2016-05-20 12:11:56 +05:30
layout_interface.rs Remove ConstellationChan. 2016-05-19 17:13:44 +02:00
lib.rs remove page and move functionality to browing context 2016-05-11 12:46:59 -06:00
makefile.cargo
mem.rs Bump heapsize to 0.3 2016-02-13 11:13:19 +01:00
network_listener.rs refactors entities from script_thread into script_runtime 2016-04-06 12:46:49 +05:30
origin.rs Upgrade to rust-url 1.0 and hyper 0.9 2016-04-23 20:27:58 +02:00
reporter.rs Report CSS errors to script task for further processing. 2016-02-11 14:48:47 -05:00
script_runtime.rs Support GC zeal 2016-05-12 16:44:40 +02:00
script_thread.rs Auto merge of #11179 - asajeffrey:webdriver-resize-window, r=jgraham 2016-05-23 02:53:48 -07:00
textinput.rs Replace range::Range with std::ops::Range in script 2016-04-28 14:54:07 -07:00
timers.rs Removed unused imports 2016-05-15 22:24:26 +03:00
unpremultiplytable.rs add un-premultiply table for GetImageData 2015-10-20 04:51:29 -04:00
webdriver_handlers.rs Added a timeout to SetWindowSize. 2016-05-20 09:20:45 -05:00