mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb: Make requestAnimationFrame() callback IDs sequential
This is required by the spec, so let's stop returning random IDs in favor of a simple sequential integer sequence.
This commit is contained in:
parent
a034d1e675
commit
0e1256e5a4
Notes:
github-actions[bot]
2024-08-05 07:13:03 +00:00
Author: https://github.com/awesomekling
Commit: 0e1256e5a4
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/962
6 changed files with 32 additions and 14 deletions
|
@ -0,0 +1,14 @@
|
|||
<script src="../include.js"></script>
|
||||
<script>
|
||||
var rafIds = [];
|
||||
asyncTest((done) => {
|
||||
rafIds.push(requestAnimationFrame(function() {
|
||||
rafIds.push(requestAnimationFrame(function() {
|
||||
rafIds.push(requestAnimationFrame(function() {
|
||||
println(rafIds);
|
||||
done();
|
||||
}));
|
||||
}));
|
||||
}));
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue