mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 11:48:32 +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:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user