| Index: third_party/WebKit/Source/bindings/scripts/v8_attributes.py
|
| diff --git a/third_party/WebKit/Source/bindings/scripts/v8_attributes.py b/third_party/WebKit/Source/bindings/scripts/v8_attributes.py
|
| index 109b010f4b9c90a336c98eaf0888aba037dbc113..9f56eb2fbd9dfc2ca0f62b837f13ef72a0805df6 100644
|
| --- a/third_party/WebKit/Source/bindings/scripts/v8_attributes.py
|
| +++ b/third_party/WebKit/Source/bindings/scripts/v8_attributes.py
|
| @@ -155,6 +155,7 @@ def attribute_context(interface, attribute, interfaces):
|
| 'is_lenient_this': 'LenientThis' in extended_attributes,
|
| 'is_nullable': idl_type.is_nullable,
|
| 'is_explicit_nullable': idl_type.is_explicit_nullable,
|
| + 'is_named_constructor': is_named_constructor_attribute(attribute),
|
| 'is_partial_interface_member':
|
| 'PartialInterfaceImplementedAs' in extended_attributes,
|
| 'is_per_world_bindings': 'PerWorldBindings' in extended_attributes,
|
| @@ -553,14 +554,16 @@ def has_custom_setter(attribute):
|
| ################################################################################
|
|
|
| idl_types.IdlType.constructor_type_name = property(
|
| - # FIXME: replace this with a [ConstructorAttribute] extended attribute
|
| lambda self: strip_suffix(self.base_type, 'Constructor'))
|
|
|
|
|
| def is_constructor_attribute(attribute):
|
| - # FIXME: replace this with [ConstructorAttribute] extended attribute
|
| return attribute.idl_type.name.endswith('Constructor')
|
|
|
|
|
| +def is_named_constructor_attribute(attribute):
|
| + return attribute.idl_type.name.endswith('ConstructorConstructor')
|
| +
|
| +
|
| def update_constructor_attribute_context(interface, attribute, context):
|
| context['needs_constructor_getter_callback'] = context['measure_as'] or context['deprecate_as']
|
|
|