mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:37:35 +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
|
@ -57,7 +57,8 @@ namespace Web::HTML::EventNames {
|
|||
__ENUMERATE_HTML_EVENT(submit) \
|
||||
__ENUMERATE_HTML_EVENT(toggle) \
|
||||
__ENUMERATE_HTML_EVENT(unhandledrejection) \
|
||||
__ENUMERATE_HTML_EVENT(unload)
|
||||
__ENUMERATE_HTML_EVENT(unload) \
|
||||
__ENUMERATE_HTML_EVENT(visibilitychange)
|
||||
|
||||
#define __ENUMERATE_HTML_EVENT(name) extern FlyString name;
|
||||
ENUMERATE_HTML_EVENTS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue