LibWeb: Let queue_a_microtask() take a JS::HeapFunction

This changes the signature of queue_a_microtask() from AK:Function to
JS::HeapFunction to be more clear to the user of the functions that this
is what is used internally.
This commit is contained in:
Kenneth Myhra
2024-04-13 16:32:39 +02:00
committed by Andreas Kling
parent 76ba374aef
commit d5c7959c45
Notes: sideshowbarker 2024-07-17 06:40:21 +09:00
8 changed files with 22 additions and 21 deletions

View File

@@ -117,7 +117,7 @@ private:
EventLoop& main_thread_event_loop();
int queue_global_task(HTML::Task::Source, JS::Object&, Function<void()> steps);
void queue_a_microtask(DOM::Document const*, Function<void()> steps);
void queue_a_microtask(DOM::Document const*, JS::NonnullGCPtr<JS::HeapFunction<void()>> steps);
void perform_a_microtask_checkpoint();
}