mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:37:34 +00:00
LibWeb: Flesh out "document visibility" state a bit more
We can now "update the visibility state", which also causes `visibilitychange` events to fire on the document. This still needs GUI integration work at the BrowsingContext level.
This commit is contained in:
parent
5a500827b8
commit
42b8656db3
3 changed files with 28 additions and 3 deletions
|
@ -317,6 +317,9 @@ public:
|
|||
bool hidden() const;
|
||||
String visibility_state() const;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/interaction.html#update-the-visibility-state
|
||||
void update_the_visibility_state(String visibility_state);
|
||||
|
||||
void run_the_resize_steps();
|
||||
void run_the_scroll_steps();
|
||||
|
||||
|
@ -502,6 +505,9 @@ private:
|
|||
|
||||
// https://html.spec.whatwg.org/#completely-loaded-time
|
||||
Optional<AK::Time> m_completely_loaded_time;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/interaction.html#visibility-state
|
||||
String m_visibility_state { "hidden" };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue