mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb: Use a HashTable when querying SessionHistoryTraversalQueue
Instead of asking "do you have an entry not in this Vector", let's ask "do you have an entry not in this HashTable".
This commit is contained in:
committed by
Andreas Kling
parent
a1519e67fb
commit
861d46be3e
Notes:
github-actions[bot]
2024-08-06 14:34:06 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/861d46be3e6 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/993
@@ -53,7 +53,7 @@ public:
|
||||
void append_sync(Function<void()> steps, JS::GCPtr<Navigable> target_navigable);
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/browsing-the-web.html#sync-navigations-jump-queue
|
||||
JS::GCPtr<SessionHistoryTraversalQueueEntry> first_synchronous_navigation_steps_with_target_navigable_not_contained_in(Vector<JS::GCPtr<Navigable>> const& list);
|
||||
JS::GCPtr<SessionHistoryTraversalQueueEntry> first_synchronous_navigation_steps_with_target_navigable_not_contained_in(HashTable<JS::NonnullGCPtr<Navigable>> const&);
|
||||
|
||||
private:
|
||||
virtual void visit_edges(Cell::Visitor&) override;
|
||||
|
||||
Reference in New Issue
Block a user