From b5412f3840a360af16a45d3133e096283e76559b Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Fri, 8 Jul 2016 15:13:01 +0200 Subject: Correct indentation in the DOMClass function. --- components/script/dom/bindings/codegen/CodegenRust.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'components/script/dom/bindings/codegen') diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py index e6e95ab1cb8..c3f5d2960d8 100644 --- a/components/script/dom/bindings/codegen/CodegenRust.py +++ b/components/script/dom/bindings/codegen/CodegenRust.py @@ -1817,15 +1817,15 @@ def DOMClassTypeId(desc): def DOMClass(descriptor): - protoList = ['PrototypeList::ID::' + proto for proto in descriptor.prototypeChain] - # Pad out the list to the right length with ID::Last so we - # guarantee that all the lists are the same length. ID::Last - # is never the ID of any prototype, so it's safe to use as - # padding. - protoList.extend(['PrototypeList::ID::Last'] * (descriptor.config.maxProtoChainLength - len(protoList))) - prototypeChainString = ', '.join(protoList) - heapSizeOf = 'heap_size_of_raw_self_and_children::<%s>' % descriptor.interface.identifier.name - return """\ + protoList = ['PrototypeList::ID::' + proto for proto in descriptor.prototypeChain] + # Pad out the list to the right length with ID::Last so we + # guarantee that all the lists are the same length. ID::Last + # is never the ID of any prototype, so it's safe to use as + # padding. + protoList.extend(['PrototypeList::ID::Last'] * (descriptor.config.maxProtoChainLength - len(protoList))) + prototypeChainString = ', '.join(protoList) + heapSizeOf = 'heap_size_of_raw_self_and_children::<%s>' % descriptor.interface.identifier.name + return """\ DOMClass { interface_chain: [ %s ], type_id: %s, -- cgit v1.2.3