diff options
author | Ms2ger <Ms2ger@gmail.com> | 2016-07-08 15:13:01 +0200 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2016-07-12 13:06:50 +0200 |
commit | b5412f3840a360af16a45d3133e096283e76559b (patch) | |
tree | c8be380ca0992ca2af41e43d848cf21b0b687cb3 /components/script/dom/bindings/codegen/CodegenRust.py | |
parent | 39113c670ca676783c6843f9c511ba6b076c0613 (diff) | |
download | servo-b5412f3840a360af16a45d3133e096283e76559b.tar.gz servo-b5412f3840a360af16a45d3133e096283e76559b.zip |
Correct indentation in the DOMClass function.
Diffstat (limited to 'components/script/dom/bindings/codegen/CodegenRust.py')
-rw-r--r-- | components/script/dom/bindings/codegen/CodegenRust.py | 18 |
1 files changed, 9 insertions, 9 deletions
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, |