mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37:35 +00:00
LibWeb: Add content navigable in NavigableContainer
"Each navigable container has a content navigable, which is either a navigable or null. It is initially null."
This commit is contained in:
parent
89a8920764
commit
21e383c24f
1 changed files with 6 additions and 0 deletions
|
@ -18,6 +18,9 @@ public:
|
|||
|
||||
static HashTable<NavigableContainer*>& all_instances();
|
||||
|
||||
JS::GCPtr<Navigable> content_navigable() { return m_content_navigable; }
|
||||
JS::GCPtr<Navigable const> content_navigable() const { return m_content_navigable.ptr(); }
|
||||
|
||||
BrowsingContext* nested_browsing_context() { return m_nested_browsing_context; }
|
||||
BrowsingContext const* nested_browsing_context() const { return m_nested_browsing_context; }
|
||||
|
||||
|
@ -43,6 +46,9 @@ protected:
|
|||
|
||||
JS::GCPtr<BrowsingContext> m_nested_browsing_context;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/document-sequences.html#content-navigable
|
||||
JS::GCPtr<Navigable> m_content_navigable { nullptr };
|
||||
|
||||
private:
|
||||
virtual bool is_navigable_container() const override { return true; }
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue