mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
LibWeb: Change backup imcumbent stack to hold Realm instead of Settings
This is a bit of a chonkier commit as it results in both: clean_up_after_running_callback and prepare_to_run_callback being changed to accept a realm instead of an environment settings object, which has a bunch of fallout, particuarly for IDL abstract operations.
This commit is contained in:
committed by
Andrew Kaster
parent
8dffd8e7d6
commit
d7023f5f45
@@ -15,14 +15,14 @@ TemporaryExecutionContext::TemporaryExecutionContext(EnvironmentSettingsObject&
|
||||
{
|
||||
prepare_to_run_script(m_environment_settings->realm());
|
||||
if (m_callbacks_enabled == CallbacksEnabled::Yes)
|
||||
m_environment_settings->prepare_to_run_callback();
|
||||
prepare_to_run_callback(m_environment_settings->realm());
|
||||
}
|
||||
|
||||
TemporaryExecutionContext::~TemporaryExecutionContext()
|
||||
{
|
||||
clean_up_after_running_script(m_environment_settings->realm());
|
||||
if (m_callbacks_enabled == CallbacksEnabled::Yes)
|
||||
m_environment_settings->clean_up_after_running_callback();
|
||||
clean_up_after_running_callback(m_environment_settings->realm());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user