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

LibWeb: Add readiness() getter in Document

This getter returns the same readiness state of document as
`ready_state()` getter that is already present returns but without
allocating string.
This commit is contained in:
Aliaksandr Kalenik 2023-03-08 19:37:42 +03:00 committed by Tim Flynn
parent b1ce852c37
commit 9d03b57c96

View file

@ -284,6 +284,7 @@ public:
JS::NonnullGCPtr<Document> appropriate_template_contents_owner_document();
DeprecatedString ready_state() const;
HTML::DocumentReadyState readiness() const { return m_readiness; };
void update_readiness(HTML::DocumentReadyState);
HTML::Window& window() const { return const_cast<HTML::Window&>(*m_window); }