diff --git a/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator/IDLGenerators.cpp b/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator/IDLGenerators.cpp index 9de6d960ac..0dc6fb103b 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator/IDLGenerators.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator/IDLGenerators.cpp @@ -2657,6 +2657,14 @@ void generate_constructor_implementation(IDL::Interface const& interface) # include #endif +)~~~"); + + for (auto& path : interface.required_imported_paths) + generate_include_for(generator, path); + + emit_includes_for_all_imports(interface, generator, interface.pair_iterator_types.has_value()); + + generator.append(R"~~~( // FIXME: This is a total hack until we can figure out the namespace for a given type somehow. using namespace Web::CSS; using namespace Web::DOM;