1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 21:07:36 +00:00

LibWeb: Set the document "completely loaded time" when appropriate

This commit is contained in:
Andreas Kling 2022-09-19 13:29:56 +02:00
parent 954da8fde5
commit 0810e77d77
2 changed files with 16 additions and 3 deletions

View file

@ -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;
};
}