diff options
-rw-r--r-- | components/script/dom/bindings/codegen/CodegenRust.py | 10 | ||||
-rw-r--r-- | components/script/dom/bindings/utils.rs | 14 |
2 files changed, 13 insertions, 11 deletions
diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py index 6dc8ece7f55..082ab972f5b 100644 --- a/components/script/dom/bindings/codegen/CodegenRust.py +++ b/components/script/dom/bindings/codegen/CodegenRust.py @@ -2001,10 +2001,10 @@ class CGCreateInterfaceObjectsMethod(CGAbstractMethod): constructor = 'None' call = """\ -return CreateInterfaceObjects2(aCx, aGlobal, aReceiver, parentProto, - &PrototypeClass, %s, - %s, - &sNativeProperties);""" % (constructor, domClass) +return do_create_interface_objects(aCx, aGlobal, aReceiver, parentProto, + &PrototypeClass, %s, + %s, + &sNativeProperties);""" % (constructor, domClass) return CGList([ CGGeneric(getParentProto), @@ -4548,7 +4548,7 @@ class CGBindingRoot(CGThing): 'dom::bindings::js::{JS, JSRef, Root, RootedReference, Temporary}', 'dom::bindings::js::{OptionalRootable, OptionalRootedRootable, ResultRootable}', 'dom::bindings::js::{OptionalRootedReference, OptionalOptionalRootedRootable}', - 'dom::bindings::utils::{CreateDOMGlobal, CreateInterfaceObjects2}', + 'dom::bindings::utils::{CreateDOMGlobal, do_create_interface_objects}', 'dom::bindings::utils::ConstantSpec', 'dom::bindings::utils::{DOMClass}', 'dom::bindings::utils::{DOMJSClass, JSCLASS_DOM_GLOBAL}', diff --git a/components/script/dom/bindings/utils.rs b/components/script/dom/bindings/utils.rs index 8e5610d97d3..411f7dcda3a 100644 --- a/components/script/dom/bindings/utils.rs +++ b/components/script/dom/bindings/utils.rs @@ -184,12 +184,14 @@ pub type NonNullJSNative = /// Creates the *interface prototype object* and the *interface object* (if /// needed). /// Fails on JSAPI failure. -pub fn CreateInterfaceObjects2(cx: *mut JSContext, global: *mut JSObject, receiver: *mut JSObject, - protoProto: *mut JSObject, - protoClass: &'static JSClass, - constructor: Option<(NonNullJSNative, &'static str, u32)>, - domClass: *const DOMClass, - members: &'static NativeProperties) -> *mut JSObject { +pub fn do_create_interface_objects(cx: *mut JSContext, global: *mut JSObject, + receiver: *mut JSObject, + protoProto: *mut JSObject, + protoClass: &'static JSClass, + constructor: Option<(NonNullJSNative, &'static str, u32)>, + domClass: *const DOMClass, + members: &'static NativeProperties) + -> *mut JSObject { let proto = CreateInterfacePrototypeObject(cx, global, protoProto, protoClass, members); |