1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 23:38:12 +00:00

LibWeb: Run setTimeout() and setInterval() callbacks as HTML tasks

We now invoke DOM timer callbacks via HTML tasks. This brings callback
sequencing closer to the spec, although there are still many
imperfections in this area.
This commit is contained in:
Andreas Kling 2021-10-03 12:39:56 +02:00
parent 9d17070047
commit 5cf439cce0
2 changed files with 11 additions and 9 deletions

View file

@ -25,6 +25,7 @@ public:
IdleTask,
PostedMessage,
Microtask,
TimerTask,
};
static NonnullOwnPtr<Task> create(Source source, DOM::Document* document, Function<void()> steps)