mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Support controlling the visibility of WebIDL interfaces via the Pref annotation.
This commit is contained in:
parent
224bcd7057
commit
bb47f72f25
2 changed files with 65 additions and 4 deletions
|
@ -351,6 +351,9 @@ class Descriptor(DescriptorProvider):
|
|||
assert self.interface.hasInterfaceObject()
|
||||
return self.interface.isCallback() or self.hasDescendants()
|
||||
|
||||
def isExposedConditionally(self):
|
||||
return self.interface.isExposedConditionally()
|
||||
|
||||
def isGlobal(self):
|
||||
"""
|
||||
Returns true if this is the primary interface for a global object
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue