From 024b2161415110d241019f82fb1ae9e0f47fe02f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 27 Nov 2020 13:54:58 +0100 Subject: [PATCH] LibWeb: Don't generate a wrap() function for the Event IDL interface We already have a wrap() in EventWrapperFactory.cpp. It would be nice to generate that at some point but it will require a lot more work on the wrapper generator. --- Libraries/LibWeb/Bindings/WindowObject.cpp | 1 + Libraries/LibWeb/CodeGenerators/WrapperGenerator.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Libraries/LibWeb/Bindings/WindowObject.cpp b/Libraries/LibWeb/Bindings/WindowObject.cpp index eec88e5504..66f4855c4a 100644 --- a/Libraries/LibWeb/Bindings/WindowObject.cpp +++ b/Libraries/LibWeb/Bindings/WindowObject.cpp @@ -36,6 +36,7 @@ #include #include #include +#include #include #include #include diff --git a/Libraries/LibWeb/CodeGenerators/WrapperGenerator.cpp b/Libraries/LibWeb/CodeGenerators/WrapperGenerator.cpp index a8be5b46b2..dd437ac585 100644 --- a/Libraries/LibWeb/CodeGenerators/WrapperGenerator.cpp +++ b/Libraries/LibWeb/CodeGenerators/WrapperGenerator.cpp @@ -342,6 +342,8 @@ int main(int argc, char** argv) static bool should_emit_wrapper_factory(const IDL::Interface& interface) { // FIXME: This is very hackish. + if (interface.name == "Event") + return false; if (interface.name == "EventTarget") return false; if (interface.name == "Node")