1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 15:27: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:
Linus Groh 2022-03-07 23:08:26 +01:00
parent 2dfb617c5b
commit 1422bd45eb
63 changed files with 133 additions and 133 deletions

View file

@ -8,12 +8,12 @@
#include <LibWeb/DOM/Document.h>
#include <LibWeb/DOM/Event.h>
#include <LibWeb/DOM/EventDispatcher.h>
#include <LibWeb/DOM/Window.h>
#include <LibWeb/HTML/Window.h>
#include <LibWeb/HighResolutionTime/Performance.h>
namespace Web::HighResolutionTime {
Performance::Performance(DOM::Window& window)
Performance::Performance(HTML::Window& window)
: DOM::EventTarget()
, m_window(window)
, m_timing(make<NavigationTiming::PerformanceTiming>(window))

View file

@ -21,7 +21,7 @@ public:
using WrapperType = Bindings::PerformanceWrapper;
using AllowOwnPtr = TrueType;
explicit Performance(DOM::Window&);
explicit Performance(HTML::Window&);
~Performance();
double now() const { return m_timer.elapsed(); }
@ -35,7 +35,7 @@ public:
virtual JS::Object* create_wrapper(JS::GlobalObject&) override;
private:
DOM::Window& m_window;
HTML::Window& m_window;
Core::ElapsedTimer m_timer;
OwnPtr<NavigationTiming::PerformanceTiming> m_timing;