mirror of
https://github.com/servo/servo.git
synced 2025-08-02 04:00:32 +01:00
Rename CreateInterfaceObjects2 to do_create_interface_objects.
This commit is contained in:
parent
23813577d1
commit
d7af3da919
2 changed files with 13 additions and 11 deletions
|
@ -2001,10 +2001,10 @@ class CGCreateInterfaceObjectsMethod(CGAbstractMethod):
|
||||||
constructor = 'None'
|
constructor = 'None'
|
||||||
|
|
||||||
call = """\
|
call = """\
|
||||||
return CreateInterfaceObjects2(aCx, aGlobal, aReceiver, parentProto,
|
return do_create_interface_objects(aCx, aGlobal, aReceiver, parentProto,
|
||||||
&PrototypeClass, %s,
|
&PrototypeClass, %s,
|
||||||
%s,
|
%s,
|
||||||
&sNativeProperties);""" % (constructor, domClass)
|
&sNativeProperties);""" % (constructor, domClass)
|
||||||
|
|
||||||
return CGList([
|
return CGList([
|
||||||
CGGeneric(getParentProto),
|
CGGeneric(getParentProto),
|
||||||
|
@ -4548,7 +4548,7 @@ class CGBindingRoot(CGThing):
|
||||||
'dom::bindings::js::{JS, JSRef, Root, RootedReference, Temporary}',
|
'dom::bindings::js::{JS, JSRef, Root, RootedReference, Temporary}',
|
||||||
'dom::bindings::js::{OptionalRootable, OptionalRootedRootable, ResultRootable}',
|
'dom::bindings::js::{OptionalRootable, OptionalRootedRootable, ResultRootable}',
|
||||||
'dom::bindings::js::{OptionalRootedReference, OptionalOptionalRootedRootable}',
|
'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::ConstantSpec',
|
||||||
'dom::bindings::utils::{DOMClass}',
|
'dom::bindings::utils::{DOMClass}',
|
||||||
'dom::bindings::utils::{DOMJSClass, JSCLASS_DOM_GLOBAL}',
|
'dom::bindings::utils::{DOMJSClass, JSCLASS_DOM_GLOBAL}',
|
||||||
|
|
|
@ -184,12 +184,14 @@ pub type NonNullJSNative =
|
||||||
/// Creates the *interface prototype object* and the *interface object* (if
|
/// Creates the *interface prototype object* and the *interface object* (if
|
||||||
/// needed).
|
/// needed).
|
||||||
/// Fails on JSAPI failure.
|
/// Fails on JSAPI failure.
|
||||||
pub fn CreateInterfaceObjects2(cx: *mut JSContext, global: *mut JSObject, receiver: *mut JSObject,
|
pub fn do_create_interface_objects(cx: *mut JSContext, global: *mut JSObject,
|
||||||
protoProto: *mut JSObject,
|
receiver: *mut JSObject,
|
||||||
protoClass: &'static JSClass,
|
protoProto: *mut JSObject,
|
||||||
constructor: Option<(NonNullJSNative, &'static str, u32)>,
|
protoClass: &'static JSClass,
|
||||||
domClass: *const DOMClass,
|
constructor: Option<(NonNullJSNative, &'static str, u32)>,
|
||||||
members: &'static NativeProperties) -> *mut JSObject {
|
domClass: *const DOMClass,
|
||||||
|
members: &'static NativeProperties)
|
||||||
|
-> *mut JSObject {
|
||||||
let proto = CreateInterfacePrototypeObject(cx, global, protoProto,
|
let proto = CreateInterfacePrototypeObject(cx, global, protoProto,
|
||||||
protoClass, members);
|
protoClass, members);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue