Generate GetConstructorObject for all interfaces

This commit is contained in:
Connor Brewster 2017-06-12 21:50:53 -06:00
parent 147dfcc99b
commit 0713257add
2 changed files with 6 additions and 2 deletions

View file

@ -398,7 +398,11 @@ class Descriptor(DescriptorProvider):
assert self.interface.hasInterfaceObject()
if self.interface.getExtendedAttribute("Inline"):
return False
return self.interface.isCallback() or self.interface.isNamespace() or self.hasDescendants()
return (self.interface.isCallback() or self.interface.isNamespace() or
self.hasDescendants() or self.interface.getExtendedAttribute("HTMLConstructor"))
def shouldCacheConstructor(self):
return self.hasDescendants() or self.interface.getExtendedAttribute("HTMLConstructor")
def isExposedConditionally(self):
return self.interface.isExposedConditionally()