mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:37:35 +00:00
LibWeb: Make Document::{visibility,read}_state return a StringView
Also using the visibility state enum to change strcmp to a simple enum state check :^)
This commit is contained in:
parent
49eb3bfb1d
commit
c3e6077cfc
3 changed files with 6 additions and 6 deletions
|
@ -308,7 +308,7 @@ public:
|
|||
|
||||
JS::NonnullGCPtr<Document> appropriate_template_contents_owner_document();
|
||||
|
||||
DeprecatedString ready_state() const;
|
||||
StringView ready_state() const;
|
||||
HTML::DocumentReadyState readiness() const { return m_readiness; }
|
||||
void update_readiness(HTML::DocumentReadyState);
|
||||
|
||||
|
@ -375,7 +375,7 @@ public:
|
|||
void set_page_showing(bool value) { m_page_showing = value; }
|
||||
|
||||
bool hidden() const;
|
||||
DeprecatedString visibility_state() const;
|
||||
StringView visibility_state() const;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/interaction.html#update-the-visibility-state
|
||||
void update_the_visibility_state(HTML::VisibilityState);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue