diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2015-12-16 00:39:22 +0100 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2015-12-16 00:39:22 +0100 |
commit | 05e456d0d2b2c67dfdd7a593aa1514d6bf125b10 (patch) | |
tree | 55c8cea956684de97051e88ad98e91e97d7408d1 /components/script/dom/bindings/codegen/CodegenRust.py | |
parent | 432087c0ea6a5a419273b448eec62eb7549ba242 (diff) | |
download | servo-05e456d0d2b2c67dfdd7a593aa1514d6bf125b10.tar.gz servo-05e456d0d2b2c67dfdd7a593aa1514d6bf125b10.zip |
Do not export GetProtoObject if the interface has no descendants
Diffstat (limited to 'components/script/dom/bindings/codegen/CodegenRust.py')
-rw-r--r-- | components/script/dom/bindings/codegen/CodegenRust.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py index 75de595694c..199ec0c28ce 100644 --- a/components/script/dom/bindings/codegen/CodegenRust.py +++ b/components/script/dom/bindings/codegen/CodegenRust.py @@ -2576,7 +2576,7 @@ class CGGetProtoObjectMethod(CGGetPerInterfaceObject): """ def __init__(self, descriptor): CGGetPerInterfaceObject.__init__(self, descriptor, "GetProtoObject", - "PrototypeList::", pub=True) + "PrototypeList::", pub=descriptor.hasDescendants()) def definition_body(self): return CGList([ @@ -2593,7 +2593,7 @@ class CGGetConstructorObjectMethod(CGGetPerInterfaceObject): """ def __init__(self, descriptor): CGGetPerInterfaceObject.__init__(self, descriptor, "GetConstructorObject", - "constructors::") + "constructors::", pub=descriptor.hasDescendants()) def definition_body(self): return CGList([ |