aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/CodegenRust.py
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2015-12-16 00:39:22 +0100
committerAnthony Ramine <n.oxyde@gmail.com>2015-12-16 00:39:22 +0100
commit05e456d0d2b2c67dfdd7a593aa1514d6bf125b10 (patch)
tree55c8cea956684de97051e88ad98e91e97d7408d1 /components/script/dom/bindings/codegen/CodegenRust.py
parent432087c0ea6a5a419273b448eec62eb7549ba242 (diff)
downloadservo-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.py4
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([