mirror of
https://github.com/servo/servo.git
synced 2025-06-13 02:44:29 +00:00
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 --> |
||
---|---|---|
.. | ||
docs | ||
dom | ||
parse | ||
task_source | ||
build.rs | ||
Cargo.toml | ||
clipboard_provider.rs | ||
cors.rs | ||
devtools.rs | ||
document_loader.rs | ||
layout_interface.rs | ||
lib.rs | ||
makefile.cargo | ||
mem.rs | ||
network_listener.rs | ||
origin.rs | ||
reporter.rs | ||
script_runtime.rs | ||
script_thread.rs | ||
textinput.rs | ||
timers.rs | ||
unpremultiplytable.rs | ||
webdriver_handlers.rs |