mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02: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:
committed by
Andreas Kling
parent
a034d1e675
commit
0e1256e5a4
Notes:
github-actions[bot]
2024-08-05 07:13:03 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/0e1256e5a40 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/962
@@ -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>
|
||||
Reference in New Issue
Block a user