1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 21:58:12 +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:
Andreas Kling 2020-04-01 18:53:28 +02:00
parent cd9379dca9
commit d062d7baa7
12 changed files with 368 additions and 72 deletions

View file

@ -35,15 +35,21 @@ class Event;
class EventListener;
class EventTarget;
class Frame;
class HTMLBodyElement;
class HTMLCanvasElement;
class HTMLElement;
class HTMLHeadElement;
class HTMLHtmlElement;
class HtmlView;
class LayoutDocument;
class LayoutNode;
class MouseEvent;
class Node;
class Selector;
class StyleResolver;
class StyleRule;
class StyleSheet;
class Window;
namespace Bindings {
@ -56,6 +62,7 @@ class EventTargetWrapper;
class HTMLCanvasElementWrapper;
class MouseEventWrapper;
class NodeWrapper;
class WindowObject;
class Wrappable;
class Wrapper;