Correct indentation in the DOMClass function.

This commit is contained in:
Ms2ger 2016-07-08 15:13:01 +02:00
parent 39113c670c
commit b5412f3840

View file

@ -1817,15 +1817,15 @@ def DOMClassTypeId(desc):
def DOMClass(descriptor): def DOMClass(descriptor):
protoList = ['PrototypeList::ID::' + proto for proto in descriptor.prototypeChain] protoList = ['PrototypeList::ID::' + proto for proto in descriptor.prototypeChain]
# Pad out the list to the right length with ID::Last so we # Pad out the list to the right length with ID::Last so we
# guarantee that all the lists are the same length. ID::Last # 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 # is never the ID of any prototype, so it's safe to use as
# padding. # padding.
protoList.extend(['PrototypeList::ID::Last'] * (descriptor.config.maxProtoChainLength - len(protoList))) protoList.extend(['PrototypeList::ID::Last'] * (descriptor.config.maxProtoChainLength - len(protoList)))
prototypeChainString = ', '.join(protoList) prototypeChainString = ', '.join(protoList)
heapSizeOf = 'heap_size_of_raw_self_and_children::<%s>' % descriptor.interface.identifier.name heapSizeOf = 'heap_size_of_raw_self_and_children::<%s>' % descriptor.interface.identifier.name
return """\ return """\
DOMClass { DOMClass {
interface_chain: [ %s ], interface_chain: [ %s ],
type_id: %s, type_id: %s,