mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
LibWeb: Give HTML::EventLoop a pointer to the JS::VM
This will be required for event loop processing.
This commit is contained in:
@@ -18,6 +18,12 @@ EventLoop::~EventLoop()
|
||||
{
|
||||
}
|
||||
|
||||
void EventLoop::set_vm(JS::VM& vm)
|
||||
{
|
||||
VERIFY(!m_vm);
|
||||
m_vm = &vm;
|
||||
}
|
||||
|
||||
EventLoop& main_thread_event_loop()
|
||||
{
|
||||
return static_cast<Bindings::WebEngineCustomData*>(Bindings::main_thread_vm().custom_data())->event_loop;
|
||||
|
||||
Reference in New Issue
Block a user