1
Fork 0
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:
Aliaksandr Kalenik 2023-04-23 17:50:08 +03:00 committed by Andreas Kling
parent 85a3a1c085
commit d85bdd3ac5
4 changed files with 17 additions and 8 deletions

View file

@ -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();