LibWeb: Add virtual to check if a Navigable is a top level traversable

This avoids some AK::is casting when we need to check this property in
upcoming algorithms.
This commit is contained in:
Andrew Kaster 2023-08-28 18:00:52 +02:00 committed by Alexander Kalenik
commit 0ed67fc0ce
Notes: sideshowbarker 2024-07-17 01:46:43 +09:00
2 changed files with 3 additions and 1 deletions

View file

@ -23,7 +23,7 @@ public:
virtual ~TraversableNavigable() override;
bool is_top_level_traversable() const;
virtual bool is_top_level_traversable() const override;
int current_session_history_step() const { return m_current_session_history_step; }
Vector<JS::NonnullGCPtr<SessionHistoryEntry>>& session_history_entries() { return m_session_history_entries; }