mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:07:47 +00:00
LibWeb: Add m_ongoing_navigation in Navigable
This commit is contained in:
parent
2626e28bb6
commit
1ee4a3e310
1 changed files with 9 additions and 0 deletions
|
@ -45,11 +45,20 @@ public:
|
||||||
|
|
||||||
static JS::GCPtr<Navigable> navigable_with_active_document(JS::NonnullGCPtr<DOM::Document>);
|
static JS::GCPtr<Navigable> navigable_with_active_document(JS::NonnullGCPtr<DOM::Document>);
|
||||||
|
|
||||||
|
enum class Traversal {
|
||||||
|
Tag
|
||||||
|
};
|
||||||
|
|
||||||
|
Variant<Empty, Traversal, String> ongoing_navigation() const { return m_ongoing_navigation; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Navigable();
|
Navigable();
|
||||||
|
|
||||||
virtual void visit_edges(Cell::Visitor&) override;
|
virtual void visit_edges(Cell::Visitor&) override;
|
||||||
|
|
||||||
|
// https://html.spec.whatwg.org/multipage/browsing-the-web.html#ongoing-navigation
|
||||||
|
Variant<Empty, Traversal, String> m_ongoing_navigation;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// https://html.spec.whatwg.org/multipage/document-sequences.html#nav-id
|
// https://html.spec.whatwg.org/multipage/document-sequences.html#nav-id
|
||||||
String m_id;
|
String m_id;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue