mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:38:10 +00:00
LibWeb: Add a bare-bones HTML event loop with a task queue
This patch attaches a HTML::EventLoop to the main thread JS::VM used for JavaScript bindings in the web engine. The goal here is to model the various task scheduling mechanisms of the HTML specification.
This commit is contained in:
parent
b76456f0ed
commit
ecb72f3b57
9 changed files with 180 additions and 1 deletions
|
@ -13,7 +13,7 @@ JS::VM& main_thread_vm()
|
|||
{
|
||||
static RefPtr<JS::VM> vm;
|
||||
if (!vm)
|
||||
vm = JS::VM::create();
|
||||
vm = JS::VM::create(make<WebEngineCustomData>());
|
||||
return *vm;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue