mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 22:38:51 +00:00
LibWeb: Add Bindings::ScriptExecutionContext
This will be inherited by documents and workers, to provide a common abstraction for script execution. (We don't have workers yet, but we might as well make this little space for them now to simplify things down the road.)
This commit is contained in:
parent
976e55e942
commit
c6ae0c41d9
Notes:
sideshowbarker
2024-07-19 02:19:26 +09:00
Author: https://github.com/awesomekling
Commit: c6ae0c41d9
11 changed files with 100 additions and 8 deletions
|
@ -40,7 +40,8 @@
|
|||
namespace Web {
|
||||
|
||||
XMLHttpRequest::XMLHttpRequest(DOM::Window& window)
|
||||
: m_window(window)
|
||||
: EventTarget(static_cast<Bindings::ScriptExecutionContext&>(window.document()))
|
||||
, m_window(window)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue