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:
parent
b1ce852c37
commit
9d03b57c96
1 changed files with 1 additions and 0 deletions
|
@ -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); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue