mirror of
https://github.com/RGBCube/serenity
synced 2025-07-02 20:22:13 +00:00
LibWeb+WebContent+Browser: Plumb visibility state from GUI to web pages
OOPWV now reacts to show/hide events and informs LibWeb about the state change. This makes visibilitychange events fire when switching tabs. :^)
This commit is contained in:
parent
5908873b45
commit
d4acdac317
14 changed files with 150 additions and 11 deletions
|
@ -18,6 +18,12 @@
|
|||
|
||||
namespace Web::HTML {
|
||||
|
||||
HashTable<BrowsingContextContainer*>& BrowsingContextContainer::all_instances()
|
||||
{
|
||||
static HashTable<BrowsingContextContainer*> set;
|
||||
return set;
|
||||
}
|
||||
|
||||
BrowsingContextContainer::BrowsingContextContainer(DOM::Document& document, DOM::QualifiedName qualified_name)
|
||||
: HTMLElement(document, move(qualified_name))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue