LibWeb: Rename current_global_object to current_principal_global_object

Again, following a rename as part of the introduction of shadow realms
inducing a bunch of mechanical changes.
This commit is contained in:
Shannon Booth 2024-10-21 13:48:44 +13:00 committed by Andrew Kaster
commit 84dc83e0e0
Notes: github-actions[bot] 2024-11-01 19:16:55 +00:00
14 changed files with 27 additions and 25 deletions

View file

@ -319,7 +319,7 @@ EnvironmentSettingsObject& current_principal_settings_object()
}
// https://html.spec.whatwg.org/multipage/webappapis.html#current-global-object
JS::Object& current_global_object()
JS::Object& current_principal_global_object()
{
auto& event_loop = HTML::main_thread_event_loop();
auto& vm = event_loop.vm();

View file

@ -146,7 +146,7 @@ JS::Object& incumbent_global_object();
JS::Realm& current_principal_realm();
EnvironmentSettingsObject& current_principal_settings_object();
JS::Object& current_global_object();
JS::Object& current_principal_global_object();
JS::Realm& relevant_realm(JS::Object const&);
EnvironmentSettingsObject& relevant_settings_object(JS::Object const&);
EnvironmentSettingsObject& relevant_settings_object(DOM::Node const&);