1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-02 20:22:13 +00:00

LibWeb: Delete WindowObjectHelper and use new generated helper instead

There's still some yaks to shave here as Window, Location and Navigator
don't have idl files yet.
This commit is contained in:
Andrew Kaster 2022-10-08 17:11:54 -06:00 committed by Andreas Kling
parent 2acff8d853
commit a838cf2725
2 changed files with 3 additions and 608 deletions

View file

@ -15,13 +15,11 @@
#include <LibJS/Runtime/Shape.h>
#include <LibTextCodec/Decoder.h>
#include <LibWeb/Bindings/CSSNamespace.h>
#include <LibWeb/Bindings/EventTargetConstructor.h>
#include <LibWeb/Bindings/EventTargetPrototype.h>
#include <LibWeb/Bindings/ExceptionOrUtils.h>
#include <LibWeb/Bindings/LocationObject.h>
#include <LibWeb/Bindings/NavigatorObject.h>
#include <LibWeb/Bindings/Replaceable.h>
#include <LibWeb/Bindings/WindowObjectHelper.h>
#include <LibWeb/Bindings/WindowExposedInterfaces.h>
#include <LibWeb/Bindings/WindowPrototype.h>
#include <LibWeb/CSS/MediaQueryList.h>
#include <LibWeb/CSS/Parser/Parser.h>
@ -741,7 +739,8 @@ void Window::initialize(JS::Realm& realm)
void Window::initialize_web_interfaces(Badge<WindowEnvironmentSettingsObject>)
{
ADD_WINDOW_OBJECT_INTERFACES;
auto& realm = this->realm();
add_window_exposed_interfaces(*this, realm);
Object::set_prototype(&Bindings::ensure_web_prototype<Bindings::WindowPrototype>(realm, "Window"));