From 23600fd76e678747ce600198bffe5aa7683ee12c Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Tue, 9 Jan 2024 16:00:24 -0700 Subject: [PATCH] BindingsGenerator: Qualify calls to WebIDL::convert_to_int And make sure that the header for AbstractOperations is included in all the implementation files that call AOs from it. --- .../LibWeb/BindingsGenerator/IDLGenerators.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp b/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp index d1001ef1c58..3c015778f15 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp @@ -509,7 +509,7 @@ static void generate_to_cpp(SourceGenerator& generator, ParameterType& parameter } // FIXME: pass through [EnforceRange] and [Clamp] extended attributes scoped_generator.append(R"~~~( - @cpp_name@ = TRY(convert_to_int(vm, @js_name@@js_suffix@)); + @cpp_name@ = TRY(WebIDL::convert_to_int(vm, @js_name@@js_suffix@)); )~~~"); if (optional_default_value.has_value()) { scoped_generator.append(R"~~~( @@ -534,7 +534,7 @@ static void generate_to_cpp(SourceGenerator& generator, ParameterType& parameter } // FIXME: pass through [EnforceRange] and [Clamp] extended attributes scoped_generator.append(R"~~~( - @cpp_name@ = TRY(convert_to_int(vm, @js_name@@js_suffix@)); + @cpp_name@ = TRY(WebIDL::convert_to_int(vm, @js_name@@js_suffix@)); )~~~"); if (optional_default_value.has_value()) { scoped_generator.append(R"~~~( @@ -559,7 +559,7 @@ static void generate_to_cpp(SourceGenerator& generator, ParameterType& parameter } // FIXME: pass through [EnforceRange] and [Clamp] extended attributes scoped_generator.append(R"~~~( - @cpp_name@ = TRY(convert_to_int(vm, @js_name@@js_suffix@)); + @cpp_name@ = TRY(WebIDL::convert_to_int(vm, @js_name@@js_suffix@)); )~~~"); if (optional_default_value.has_value()) { scoped_generator.append(R"~~~( @@ -584,7 +584,7 @@ static void generate_to_cpp(SourceGenerator& generator, ParameterType& parameter } // FIXME: pass through [EnforceRange] and [Clamp] extended attributes scoped_generator.append(R"~~~( - @cpp_name@ = TRY(convert_to_int(vm, @js_name@@js_suffix@)); + @cpp_name@ = TRY(WebIDL::convert_to_int(vm, @js_name@@js_suffix@)); )~~~"); if (optional_default_value.has_value()) { scoped_generator.append(R"~~~( @@ -609,7 +609,7 @@ static void generate_to_cpp(SourceGenerator& generator, ParameterType& parameter } // FIXME: pass through [EnforceRange] and [Clamp] extended attributes scoped_generator.append(R"~~~( - @cpp_name@ = TRY(convert_to_int(vm, @js_name@@js_suffix@)); + @cpp_name@ = TRY(WebIDL::convert_to_int(vm, @js_name@@js_suffix@)); )~~~"); if (optional_default_value.has_value()) { scoped_generator.append(R"~~~( @@ -4083,6 +4083,7 @@ void generate_prototype_implementation(IDL::Interface const& interface, StringBu #include #include #include +#include #include #include #include @@ -4409,6 +4410,7 @@ void generate_global_mixin_implementation(IDL::Interface const& interface, Strin #include #include #include +#include #include #include