mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 14:19:48 +00:00
LibWeb: Make HTML::Task IDs a sequential, distinct numeric type
This also fixes a bug where task IDs were being deallocated from the wrong IDAllocator. I don't know if it was actually possible to cause any real trouble with that mistake, nor do I know how to write a test for it, but this makes the bug go away.
This commit is contained in:
parent
0e1256e5a4
commit
08d60d7521
Notes:
github-actions[bot]
2024-08-05 07:12:59 +00:00
Author: https://github.com/awesomekling
Commit: 08d60d7521
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/962
12 changed files with 33 additions and 29 deletions
|
@ -116,8 +116,8 @@ private:
|
|||
};
|
||||
|
||||
EventLoop& main_thread_event_loop();
|
||||
int queue_a_task(HTML::Task::Source, JS::GCPtr<EventLoop>, JS::GCPtr<DOM::Document>, JS::NonnullGCPtr<JS::HeapFunction<void()>> steps);
|
||||
int queue_global_task(HTML::Task::Source, JS::Object&, JS::NonnullGCPtr<JS::HeapFunction<void()>> steps);
|
||||
TaskID queue_a_task(HTML::Task::Source, JS::GCPtr<EventLoop>, JS::GCPtr<DOM::Document>, JS::NonnullGCPtr<JS::HeapFunction<void()>> steps);
|
||||
TaskID queue_global_task(HTML::Task::Source, JS::Object&, JS::NonnullGCPtr<JS::HeapFunction<void()>> steps);
|
||||
void queue_a_microtask(DOM::Document const*, JS::NonnullGCPtr<JS::HeapFunction<void()>> steps);
|
||||
void perform_a_microtask_checkpoint();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue