mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-02 04:27:12 +02:00
LibWeb: Implement the 'Relevant realm/{settings,global} object' concepts
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 17:52:03 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/11d0e37d8e Pull-request: https://github.com/SerenityOS/serenity/pull/12919 Reviewed-by: https://github.com/awesomekling ✅
@@ -10,6 +10,7 @@
|
||||
#include <AK/URL.h>
|
||||
#include <LibJS/Runtime/ExecutionContext.h>
|
||||
#include <LibJS/Runtime/GlobalObject.h>
|
||||
#include <LibJS/Runtime/Object.h>
|
||||
#include <LibJS/Runtime/Realm.h>
|
||||
#include <LibWeb/HTML/BrowsingContext.h>
|
||||
#include <LibWeb/HTML/EventLoop/EventLoop.h>
|
||||
@@ -120,5 +121,8 @@ JS::Realm& incumbent_realm();
|
||||
JS::GlobalObject& incumbent_global_object();
|
||||
EnvironmentSettingsObject& current_settings_object();
|
||||
JS::GlobalObject& current_global_object();
|
||||
JS::Realm& relevant_realm(JS::Object const&);
|
||||
EnvironmentSettingsObject& relevant_settings_object(JS::Object const&);
|
||||
JS::GlobalObject& relevant_global_object(JS::Object const&);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user