mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 14:43:01 +02:00
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:
committed by
Andreas Kling
parent
76ba374aef
commit
d5c7959c45
Notes:
sideshowbarker
2024-07-17 06:40:21 +09:00
Author: https://github.com/kennethmyhra Commit: https://github.com/SerenityOS/serenity/commit/d5c7959c45 Pull-request: https://github.com/SerenityOS/serenity/pull/23950
@@ -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();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user