diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2015-09-25 02:06:55 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2015-10-02 16:15:12 +0200 |
commit | e24b8ab644129d9718d6f8175106adc8cdc63ee9 (patch) | |
tree | e4ceb1fe2e06d7bdff9346a42afb9a9f3773972f /components/script/dom/bindings/codegen/Configuration.py | |
parent | a7208869f2903e36f9b2f540b55b50283d7df466 (diff) | |
download | servo-e24b8ab644129d9718d6f8175106adc8cdc63ee9.tar.gz servo-e24b8ab644129d9718d6f8175106adc8cdc63ee9.zip |
Don't generate useless InheritTypes interfaces
Interfaces with no descendant need neither a Base trait nor upcast functions,
and interfaces with no ancestors neither a Derived trait nor downcast functions.
Diffstat (limited to 'components/script/dom/bindings/codegen/Configuration.py')
-rw-r--r-- | components/script/dom/bindings/codegen/Configuration.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/bindings/codegen/Configuration.py b/components/script/dom/bindings/codegen/Configuration.py index 5e1c8844276..a8179c5be95 100644 --- a/components/script/dom/bindings/codegen/Configuration.py +++ b/components/script/dom/bindings/codegen/Configuration.py @@ -227,9 +227,9 @@ class Descriptor(DescriptorProvider): if self.proxy: iface = self.interface - while iface: - iface.setUserData('hasProxyDescendant', True) + while iface.parent: iface = iface.parent + iface.setUserData('hasProxyDescendant', True) self.name = interface.identifier.name |