mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 20:28:11 +00:00
LibWeb: Add API for finding NavigableContainer by content navigable
This is only needed because currently spec doesn't explicitly define that navigable should have a pointer to associated container and when this pointer should be set.
This commit is contained in:
parent
85a3a1c085
commit
d85bdd3ac5
4 changed files with 17 additions and 8 deletions
|
@ -14,6 +14,8 @@ class NavigableContainer : public HTMLElement {
|
|||
WEB_PLATFORM_OBJECT(NavigableContainer, HTMLElement);
|
||||
|
||||
public:
|
||||
static JS::GCPtr<NavigableContainer> navigable_container_with_content_navigable(JS::NonnullGCPtr<Navigable> navigable);
|
||||
|
||||
virtual ~NavigableContainer() override;
|
||||
|
||||
static HashTable<NavigableContainer*>& all_instances();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue