mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +00:00
LibWeb: Add NavigationTransition, a transient property of Navigation
This property is useful for web content to determine whether an ongoing navigation has settled or not.
This commit is contained in:
committed by
Andrew Kaster
parent
4989375191
commit
3dd3b2019d
@@ -12,6 +12,7 @@
|
||||
#include <LibWeb/HTML/Navigation.h>
|
||||
#include <LibWeb/HTML/NavigationCurrentEntryChangeEvent.h>
|
||||
#include <LibWeb/HTML/NavigationHistoryEntry.h>
|
||||
#include <LibWeb/HTML/NavigationTransition.h>
|
||||
#include <LibWeb/HTML/Window.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
@@ -39,6 +40,7 @@ void Navigation::visit_edges(JS::Cell::Visitor& visitor)
|
||||
Base::visit_edges(visitor);
|
||||
for (auto& entry : m_entry_list)
|
||||
visitor.visit(entry);
|
||||
visitor.visit(m_transition);
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigation-entries
|
||||
|
||||
Reference in New Issue
Block a user