Andreas Kling
e0c7f8dafa
LibWeb: Give HTML::EventLoop a pointer to the JS::VM
...
This will be required for event loop processing.
2021-09-09 02:18:31 +02:00
Andreas Kling
7bcde2bcfb
LibWeb: Let HTML::EventLoop know its type
...
There are three types of event loop: window, worker and worklet.
For now, we only have window event loops.
2021-09-09 02:18:31 +02:00
Andreas Kling
0554d96a2e
LibWeb: Stub out HTML::EventLoop::process() with spec FIXME's
2021-09-09 02:18:31 +02:00
Andreas Kling
c8c9112652
LibWeb: Give HTML::EventLoop a "currently running task"
2021-09-09 02:18:31 +02:00
Andreas Kling
bc3a432cb2
LibWeb: Add HTML::Task::Source to model "generic task sources"
2021-09-09 02:18:31 +02:00
Andreas Kling
462120d900
LibWeb: Stub out HTML::EventLoop::spin_until() with spec FIXME's
2021-09-09 02:18:31 +02:00
Andreas Kling
ecb72f3b57
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.
2021-09-09 02:18:31 +02:00