mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:47:35 +00:00
LibWeb: Move Window from DOM directory & namespace to HTML
The Window object is part of the HTML spec. :^) https://html.spec.whatwg.org/multipage/window-object.html
This commit is contained in:
parent
2dfb617c5b
commit
1422bd45eb
63 changed files with 133 additions and 133 deletions
|
@ -30,12 +30,12 @@ class WindowObject
|
|||
JS_OBJECT(WindowObject, JS::GlobalObject);
|
||||
|
||||
public:
|
||||
explicit WindowObject(DOM::Window&);
|
||||
explicit WindowObject(HTML::Window&);
|
||||
virtual void initialize_global_object() override;
|
||||
virtual ~WindowObject() override;
|
||||
|
||||
DOM::Window& impl() { return *m_impl; }
|
||||
const DOM::Window& impl() const { return *m_impl; }
|
||||
HTML::Window& impl() { return *m_impl; }
|
||||
const HTML::Window& impl() const { return *m_impl; }
|
||||
|
||||
Origin origin() const;
|
||||
|
||||
|
@ -135,7 +135,7 @@ private:
|
|||
ENUMERATE_GLOBAL_EVENT_HANDLERS(__ENUMERATE);
|
||||
#undef __ENUMERATE
|
||||
|
||||
NonnullRefPtr<DOM::Window> m_impl;
|
||||
NonnullRefPtr<HTML::Window> m_impl;
|
||||
|
||||
LocationObject* m_location_object { nullptr };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue