mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb: Use HeapFunction directly in SessionHistoryTraversalQueue
This allows us to use HeapFunction all of the way down, allowing us to remove the Handle usage in after_session_callback for create_new_child_navigable.
This commit is contained in:
parent
b6d2ab2332
commit
fc83653f3c
Notes:
github-actions[bot]
2024-08-18 09:16:10 +00:00
Author: https://github.com/shannonbooth
Commit: fc83653f3c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1108
Reviewed-by: https://github.com/awesomekling
8 changed files with 33 additions and 33 deletions
|
@ -80,14 +80,14 @@ public:
|
|||
void close_top_level_traversable();
|
||||
void destroy_top_level_traversable();
|
||||
|
||||
void append_session_history_traversal_steps(ESCAPING Function<void()> steps)
|
||||
void append_session_history_traversal_steps(JS::NonnullGCPtr<JS::HeapFunction<void()>> steps)
|
||||
{
|
||||
m_session_history_traversal_queue->append(move(steps));
|
||||
m_session_history_traversal_queue->append(steps);
|
||||
}
|
||||
|
||||
void append_session_history_synchronous_navigation_steps(JS::NonnullGCPtr<Navigable> target_navigable, ESCAPING Function<void()> steps)
|
||||
void append_session_history_synchronous_navigation_steps(JS::NonnullGCPtr<Navigable> target_navigable, JS::NonnullGCPtr<JS::HeapFunction<void()>> steps)
|
||||
{
|
||||
m_session_history_traversal_queue->append_sync(move(steps), target_navigable);
|
||||
m_session_history_traversal_queue->append_sync(steps, target_navigable);
|
||||
}
|
||||
|
||||
String window_handle() const { return m_window_handle; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue