diff options
Diffstat (limited to 'Libraries/LibWeb/CodeGenerators/WrapperGenerator.cpp')
-rw-r--r-- | Libraries/LibWeb/CodeGenerators/WrapperGenerator.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Libraries/LibWeb/CodeGenerators/WrapperGenerator.cpp b/Libraries/LibWeb/CodeGenerators/WrapperGenerator.cpp index 4d2375c0f6..9595f282b2 100644 --- a/Libraries/LibWeb/CodeGenerators/WrapperGenerator.cpp +++ b/Libraries/LibWeb/CodeGenerators/WrapperGenerator.cpp @@ -325,7 +325,7 @@ int main(int argc, char** argv) return 1; } - if (namespace_ == "DOM") { + if (namespace_ == "DOM" || namespace_ == "UIEvents") { StringBuilder builder; builder.append(namespace_); builder.append("::"); @@ -411,8 +411,10 @@ static void generate_header(const IDL::Interface& interface) // FIXME: This is very strange. out() << "#if __has_include(<LibWeb/DOM/" << interface.name << ".h>)"; out() << "#include <LibWeb/DOM/" << interface.name << ".h>"; - out() << "#else"; + out() << "#elif __has_include(<LibWeb/HTML/" << interface.name << ".h>)"; out() << "#include <LibWeb/HTML/" << interface.name << ".h>"; + out() << "#elif __has_include(<LibWeb/UIEvents/" << interface.name << ".h>)"; + out() << "#include <LibWeb/UIEvents/" << interface.name << ".h>"; out() << "#endif"; if (wrapper_base_class != "Wrapper") |