servo/components/script
bors-servo e5c3bb8977 Auto merge of #11205 - pcwalton:avoid-needless-animation-state-changes, r=jdm
script: Avoid needless `ChangeRunningAnimationsState` messages during typical `requestAnimationFrame()` animations.

This skips useless message traffic when `requestAnimationFrame()` is
called during an animation frame callback. It reduces CPU usage of the
following snippet by 49%:

    <script>
        function foo() {
            requestAnimationFrame(foo);
        }
    </script>
    <button onclick="foo()">Start rAF</button>

Partially addresses #9844.

<!-- 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/11205)
<!-- Reviewable:end -->
2016-05-17 17:24:46 -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 #11205 - pcwalton:avoid-needless-animation-state-changes, r=jdm 2016-05-17 17:24:46 -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 internal crates to bitflags 0.7 2016-05-17 23:34:04 +02:00
clipboard_provider.rs Remove unused imports in script 2016-01-17 12:41:28 +05:30
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 Auto merge of #8454 - jdm:media, r=KiChjang 2016-05-03 16:42:46 -07:00
layout_interface.rs Auto merge of #9968 - izgzhen:scroll, r=asajeffrey 2016-04-20 18:40:26 +05:30
lib.rs remove page and move functionality to browing context 2016-05-11 12:46:59 -06:00
makefile.cargo Fix spurious rebuilds of the script crate 2015-10-08 21:37:56 -07:00
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 Stop using JSAutoRequest. 2016-05-13 15:34:38 +02: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 removed instances of &Root<BrowsingContext> 2016-05-11 13:21:16 -06:00