mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:37:35 +00:00
LibWeb: Add API for finding Navigable with a given active document
This will be used to look up a document's node navigable. It might be nice to have a direct pointer from Document to its Navigable, but at the moment I don't understand the algorithms well enough to maintain that linkage.
This commit is contained in:
parent
f09aaf826f
commit
6e416284b9
2 changed files with 25 additions and 2 deletions
|
@ -43,6 +43,8 @@ public:
|
|||
JS::GCPtr<TraversableNavigable> traversable_navigable();
|
||||
JS::GCPtr<TraversableNavigable> top_level_traversable();
|
||||
|
||||
static JS::GCPtr<Navigable> navigable_with_active_document(JS::NonnullGCPtr<DOM::Document>);
|
||||
|
||||
protected:
|
||||
Navigable();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue