From 05e456d0d2b2c67dfdd7a593aa1514d6bf125b10 Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Wed, 16 Dec 2015 00:39:22 +0100 Subject: Do not export GetProtoObject if the interface has no descendants --- components/script/dom/bindings/codegen/CodegenRust.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components/script/dom/bindings/codegen/CodegenRust.py') 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([ -- cgit v1.2.3