mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-19 10:20:22 +00:00
LibWeb: Remove ShadowRealm HTML integration
This commit is contained in:
parent
f27bc38aa7
commit
bb0f244667
Notes:
github-actions[bot]
2026-04-05 11:58:52 +00:00
Author: https://github.com/shannonbooth
Commit: bb0f244667
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8753
71 changed files with 469 additions and 683 deletions
|
|
@ -11,20 +11,18 @@ namespace Web::HTML {
|
|||
|
||||
GC_DEFINE_ALLOCATOR(Script);
|
||||
|
||||
Script::Script(Optional<URL::URL> base_url, ByteString filename, JS::Realm& realm)
|
||||
Script::Script(Optional<URL::URL> base_url, ByteString filename, EnvironmentSettingsObject& settings)
|
||||
: m_base_url(move(base_url))
|
||||
, m_filename(move(filename))
|
||||
, m_realm(realm)
|
||||
, m_settings(settings)
|
||||
{
|
||||
}
|
||||
|
||||
Script::~Script() = default;
|
||||
|
||||
// https://whatpr.org/html/9893/webappapis.html#settings-object
|
||||
EnvironmentSettingsObject& Script::settings_object()
|
||||
{
|
||||
// The settings object of a script is the settings object of the principal realm of the script's realm.
|
||||
return principal_realm_settings_object(principal_realm(realm()));
|
||||
return m_settings;
|
||||
}
|
||||
|
||||
void Script::visit_host_defined_self(JS::Cell::Visitor& visitor)
|
||||
|
|
@ -35,7 +33,7 @@ void Script::visit_host_defined_self(JS::Cell::Visitor& visitor)
|
|||
void Script::visit_edges(Visitor& visitor)
|
||||
{
|
||||
Base::visit_edges(visitor);
|
||||
visitor.visit(m_realm);
|
||||
visitor.visit(m_settings);
|
||||
visitor.visit(m_parse_error);
|
||||
visitor.visit(m_error_to_rethrow);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue