mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 19:59:17 +00:00
LibWeb: Add SessionHistoryEntry::document()
No behaviour change intended.
This commit is contained in:
committed by
Andreas Kling
parent
b590d1b48b
commit
ce325a9912
@@ -28,4 +28,13 @@ SessionHistoryEntry::SessionHistoryEntry()
|
||||
{
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/browsing-the-web.html#she-document
|
||||
JS::GCPtr<DOM::Document> SessionHistoryEntry::document() const
|
||||
{
|
||||
// To get a session history entry's document, return its document state's document.
|
||||
if (!m_document_state)
|
||||
return {};
|
||||
return m_document_state->document();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user