From 9d03b57c969b3b138cfd302230f48f9723d43af4 Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Wed, 8 Mar 2023 19:37:42 +0300 Subject: [PATCH] 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. --- Userland/Libraries/LibWeb/DOM/Document.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Libraries/LibWeb/DOM/Document.h b/Userland/Libraries/LibWeb/DOM/Document.h index 2d39f1f0fd..a79b577853 100644 --- a/Userland/Libraries/LibWeb/DOM/Document.h +++ b/Userland/Libraries/LibWeb/DOM/Document.h @@ -284,6 +284,7 @@ public: JS::NonnullGCPtr 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(*m_window); }