mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37:17 +02:00
LibWeb: Schedule Microtasks on Microtask queue
This commit is contained in:
committed by
Andreas Kling
parent
3802d9ccc4
commit
93b6334966
Notes:
github-actions[bot]
2024-07-25 14:59:31 +00:00
Author: https://github.com/TSultanov Commit: https://github.com/LadybirdBrowser/ladybird/commit/93b6334966a Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/812
@@ -400,7 +400,7 @@ int queue_a_task(HTML::Task::Source source, JS::GCPtr<EventLoop> event_loop, JS:
|
||||
auto task = HTML::Task::create(event_loop->vm(), source, document, steps);
|
||||
|
||||
// 8. Let queue be the task queue to which source is associated on event loop.
|
||||
auto& queue = event_loop->task_queue();
|
||||
auto& queue = source == HTML::Task::Source::Microtask ? event_loop->microtask_queue() : event_loop->task_queue();
|
||||
|
||||
// 9. Append task to queue.
|
||||
queue.add(task);
|
||||
|
||||
Reference in New Issue
Block a user