mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Use snake case for the arguments to do_create_interface_objects.
This commit is contained in:
parent
d7af3da919
commit
38baa130d8
1 changed files with 6 additions and 6 deletions
|
@ -186,18 +186,18 @@ pub type NonNullJSNative =
|
||||||
/// Fails on JSAPI failure.
|
/// Fails on JSAPI failure.
|
||||||
pub fn do_create_interface_objects(cx: *mut JSContext, global: *mut JSObject,
|
pub fn do_create_interface_objects(cx: *mut JSContext, global: *mut JSObject,
|
||||||
receiver: *mut JSObject,
|
receiver: *mut JSObject,
|
||||||
protoProto: *mut JSObject,
|
proto_proto: *mut JSObject,
|
||||||
protoClass: &'static JSClass,
|
proto_class: &'static JSClass,
|
||||||
constructor: Option<(NonNullJSNative, &'static str, u32)>,
|
constructor: Option<(NonNullJSNative, &'static str, u32)>,
|
||||||
domClass: *const DOMClass,
|
dom_class: *const DOMClass,
|
||||||
members: &'static NativeProperties)
|
members: &'static NativeProperties)
|
||||||
-> *mut JSObject {
|
-> *mut JSObject {
|
||||||
let proto = CreateInterfacePrototypeObject(cx, global, protoProto,
|
let proto = CreateInterfacePrototypeObject(cx, global, proto_proto,
|
||||||
protoClass, members);
|
proto_class, members);
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
JS_SetReservedSlot(proto, DOM_PROTO_INSTANCE_CLASS_SLOT,
|
JS_SetReservedSlot(proto, DOM_PROTO_INSTANCE_CLASS_SLOT,
|
||||||
PrivateValue(domClass as *const libc::c_void));
|
PrivateValue(dom_class as *const libc::c_void));
|
||||||
}
|
}
|
||||||
|
|
||||||
match constructor {
|
match constructor {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue