Truly independent web browser
Meta: Collect inherited Rust toJSON attributes base interface first
Shannon Boothb4e6d8d7f73d
diff --git a/Meta/Generators/libweb_bindings/rust_bindings.py b/Meta/Generators/libweb_bindings/rust_bindings.pyindex dfe4935a480..e9b8860e8dd 100644--- a/Meta/Generators/libweb_bindings/rust_bindings.py+++ b/Meta/Generators/libweb_bindings/rust_bindings.py@@ -1703,7 +1703,7 @@ def write_default_to_json(out: TextIO, context: GenerationContext, interface: In# NB: The inheritance stack of the interface has the interface on top and the one it inherits from at the bottom,# and collecting the attribute values of the stack pops it, https://webidl.spec.whatwg.org/#collect-attribute-values-of-an-inheritance-stack# so the attributes of the interfaces that others inherit from are collected first.- for interface_in_chain in context.inheritance_stack(interface):+ for interface_in_chain in reversed(context.inheritance_stack(interface)):if not any(operation_is_default_to_json(operation) for operation in interface_in_chain.regular_operations):continueif not is_implemented_in_rust(interface_in_chain):