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 7e24cc05bbbe2ae89ad628e426080051e9702e94..34d04127f5da25614e8e00c0395fcfce3d6d6721 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, |
@@ -552,14 +553,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'] |