mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:07:45 +00:00
LibWeb: Set the document "completely loaded time" when appropriate
This commit is contained in:
parent
954da8fde5
commit
0810e77d77
2 changed files with 16 additions and 3 deletions
|
@ -365,6 +365,9 @@ public:
|
|||
auto& pending_scroll_event_targets() { return m_pending_scroll_event_targets; }
|
||||
auto& pending_scrollend_event_targets() { return m_pending_scrollend_event_targets; }
|
||||
|
||||
// https://html.spec.whatwg.org/#completely-loaded
|
||||
bool is_completely_loaded() const;
|
||||
|
||||
protected:
|
||||
virtual void visit_edges(Cell::Visitor&) override;
|
||||
|
||||
|
@ -496,6 +499,9 @@ private:
|
|||
JS::GCPtr<HTMLCollection> m_forms;
|
||||
JS::GCPtr<HTMLCollection> m_scripts;
|
||||
JS::GCPtr<HTMLCollection> m_all;
|
||||
|
||||
// https://html.spec.whatwg.org/#completely-loaded-time
|
||||
Optional<AK::Time> m_completely_loaded_time;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue