diff options
author | Andreas Kling <kling@serenityos.org> | 2020-04-01 18:53:28 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-01 18:57:00 +0200 |
commit | d062d7baa7f4ce223da2a73108d87bd2178088bf (patch) | |
tree | d9cb1026879dd86be9b283d9b559bfe245e1b610 /Libraries/LibJS/Interpreter.cpp | |
parent | cd9379dca99ec42aa3b6ef139d1231868be2eeb0 (diff) | |
download | serenity-d062d7baa7f4ce223da2a73108d87bd2178088bf.zip |
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.
Diffstat (limited to 'Libraries/LibJS/Interpreter.cpp')
-rw-r--r-- | Libraries/LibJS/Interpreter.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Libraries/LibJS/Interpreter.cpp b/Libraries/LibJS/Interpreter.cpp index 83f6c9bd71..17236cf335 100644 --- a/Libraries/LibJS/Interpreter.cpp +++ b/Libraries/LibJS/Interpreter.cpp @@ -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() |