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 006bc6c2f922a7704e40d6a53df32e2bb9a2f4dd..6432714a40aa8429ddfc68862f0bb1286491f1a8 100644 |
--- a/third_party/WebKit/Source/bindings/scripts/v8_attributes.py |
+++ b/third_party/WebKit/Source/bindings/scripts/v8_attributes.py |
@@ -156,6 +156,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, |
@@ -562,14 +563,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'] |