$NetBSD: patch-src_3rdparty_chromium_third__party_blink_renderer_build_scripts_templates_element__factory.cc.tmpl,v 1.1 2023/06/08 20:38:06 markd Exp $ build with python3 --- src/3rdparty/chromium/third_party/blink/renderer/build/scripts/templates/element_factory.cc.tmpl.orig 2022-03-30 09:48:18.000000000 +0000 +++ src/3rdparty/chromium/third_party/blink/renderer/build/scripts/templates/element_factory.cc.tmpl @@ -26,7 +26,7 @@ using {{namespace}}FunctionMap = HashMap static {{namespace}}FunctionMap* g_{{namespace|lower}}_constructors = nullptr; -{% for tag in tags|sort if not tag.noConstructor %} +{% for tag in tags|sort(attribute='name') if not tag.noConstructor %} static {{namespace}}Element* {{namespace}}{{tag.name.to_upper_camel_case()}}Constructor( Document& document, const CreateElementFlags flags) { {% if tag.runtimeEnabled %} @@ -52,7 +52,7 @@ static void Create{{namespace}}FunctionM // Empty array initializer lists are illegal [dcl.init.aggr] and will not // compile in MSVC. If tags list is empty, add check to skip this. static const Create{{namespace}}FunctionMapData data[] = { - {% for tag in tags|sort if not tag.noConstructor %} + {% for tag in tags|sort(attribute='name') if not tag.noConstructor %} { {{cpp_namespace}}::{{tag|symbol}}Tag, {{namespace}}{{tag.name.to_upper_camel_case()}}Constructor }, {% endfor %} };