mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 18:25:08 +00:00
LibWeb+LibJS: Move DOM Window object to dedicated classes
LibWeb now creates a WindowObject which inherits from GlobalObject. Allocation of the global object is moved out of the Interpreter ctor to allow for specialized construction. The existing Window interfaces are moved to WindowObject with their implementation code in the new Window class.
This commit is contained in:
parent
cd9379dca9
commit
d062d7baa7
12 changed files with 368 additions and 72 deletions
|
@ -48,8 +48,6 @@ Interpreter::Interpreter()
|
|||
m_array_prototype = heap().allocate<ArrayPrototype>();
|
||||
m_error_prototype = heap().allocate<ErrorPrototype>();
|
||||
m_date_prototype = heap().allocate<DatePrototype>();
|
||||
|
||||
m_global_object = heap().allocate<GlobalObject>();
|
||||
}
|
||||
|
||||
Interpreter::~Interpreter()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue