diff options
author | Bastien Orivel <eijebong@bananium.fr> | 2019-05-24 22:24:41 +0200 |
---|---|---|
committer | Bastien Orivel <eijebong@bananium.fr> | 2019-05-24 23:02:38 +0200 |
commit | 7dbff6efb7ce93ecfb04883cd1dffa24a03ed0ad (patch) | |
tree | 6cecd1c857227a6d61188689c143d7bf99a50d0b /components/script/dom/bindings/codegen/Configuration.py | |
parent | 2181872973ce49b50ed2dd077c4fdde6f4c5d019 (diff) | |
download | servo-7dbff6efb7ce93ecfb04883cd1dffa24a03ed0ad.tar.gz servo-7dbff6efb7ce93ecfb04883cd1dffa24a03ed0ad.zip |
Add an inCompartments config for bindings
Diffstat (limited to 'components/script/dom/bindings/codegen/Configuration.py')
-rw-r--r-- | components/script/dom/bindings/codegen/Configuration.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/script/dom/bindings/codegen/Configuration.py b/components/script/dom/bindings/codegen/Configuration.py index 47a65d37d4b..81f61a648f1 100644 --- a/components/script/dom/bindings/codegen/Configuration.py +++ b/components/script/dom/bindings/codegen/Configuration.py @@ -223,6 +223,7 @@ class Descriptor(DescriptorProvider): self.concreteType = typeName self.register = desc.get('register', True) self.path = desc.get('path', pathDefault) + self.inCompartmentMethods = [name for name in desc.get('inCompartments', [])] self.bindingPath = 'crate::dom::bindings::codegen::Bindings::%s' % ('::'.join([ifaceName + 'Binding'] * 2)) self.outerObjectHook = desc.get('outerObjectHook', 'None') self.proxy = False |