mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Generate GetConstructorObject for all interfaces
This commit is contained in:
parent
147dfcc99b
commit
0713257add
2 changed files with 6 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue