summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC/sys
diff options
context:
space:
mode:
authorMacDue <macdue@dueutil.tech>2022-05-05 20:08:29 +0100
committerLinus Groh <mail@linusgroh.de>2022-05-13 00:47:16 +0200
commit3cfa9b63b5fbcd6688c921c7c9b35f95030e4e8b (patch)
tree10a46d7737b6b700495697cda3454532271ba599 /Userland/Libraries/LibC/sys
parent18cad73b018a3a4fe14a31266e09293b24cba86b (diff)
downloadserenity-3cfa9b63b5fbcd6688c921c7c9b35f95030e4e8b.zip
LibWeb: Stop inactive requestAnimationFrame() callbacks from running
Previously requestAnimationFrame() callbacks were registered with a static global RequestAnimationFrameDriver shared between all windows. This led to callbacks still running after navigating away from a page (This could be seen with the WASM GoL demo). This commit moves the RequestAnimationFrameDriver (now AnimationFrameCallbackDriver) to be a member of the HTML::Window object, then uses the 'active document' parameter of run_animation_frame_callbacks() to run only the active callbacks.
Diffstat (limited to 'Userland/Libraries/LibC/sys')
0 files changed, 0 insertions, 0 deletions