mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-03 22:59:33 +00:00
LibWeb: Initialize HTML::EventLoop with its type
This commit is contained in:
parent
aa4e18fca5
commit
5d8784318d
Notes:
sideshowbarker
2024-07-16 19:42:24 +09:00
Author: https://github.com/ADKaster
Commit: 5d8784318d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/543
10 changed files with 12 additions and 11 deletions
|
@ -24,7 +24,8 @@ namespace Web::HTML {
|
|||
|
||||
JS_DEFINE_ALLOCATOR(EventLoop);
|
||||
|
||||
EventLoop::EventLoop()
|
||||
EventLoop::EventLoop(Type type)
|
||||
: m_type(type)
|
||||
{
|
||||
m_task_queue = heap().allocate_without_realm<TaskQueue>(*this);
|
||||
m_microtask_queue = heap().allocate_without_realm<TaskQueue>(*this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue