mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 02:27:19 +02:00
LibWeb: Initialize HTML::EventLoop with its type
This commit is contained in:
committed by
Andreas Kling
parent
aa4e18fca5
commit
5d8784318d
Notes:
sideshowbarker
2024-07-16 19:42:24 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/LadybirdBrowser/ladybird/commit/5d8784318d Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/543
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user