mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-25 09:04:53 +00:00
LibWeb: Remove unecessary dependence on Window from HTML classes
These classes only needed Window to get at its realm. Pass a realm directly to construct HTML classes.
This commit is contained in:
committed by
Linus Groh
parent
a2ccb00e1d
commit
f0c5f77f99
@@ -368,8 +368,10 @@ void EventLoop::unregister_environment_settings_object(Badge<EnvironmentSettings
|
||||
Vector<JS::Handle<HTML::Window>> EventLoop::same_loop_windows() const
|
||||
{
|
||||
Vector<JS::Handle<HTML::Window>> windows;
|
||||
for (auto& document : documents_in_this_event_loop())
|
||||
windows.append(JS::make_handle(document->window()));
|
||||
for (auto& document : documents_in_this_event_loop()) {
|
||||
if (document->is_fully_active())
|
||||
windows.append(JS::make_handle(document->window()));
|
||||
}
|
||||
return windows;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user