mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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.
|
||||
pub fn do_create_interface_objects(cx: *mut JSContext, global: *mut JSObject,
|
||||
receiver: *mut JSObject,
|
||||
protoProto: *mut JSObject,
|
||||
protoClass: &'static JSClass,
|
||||
proto_proto: *mut JSObject,
|
||||
proto_class: &'static JSClass,
|
||||
constructor: Option<(NonNullJSNative, &'static str, u32)>,
|
||||
domClass: *const DOMClass,
|
||||
dom_class: *const DOMClass,
|
||||
members: &'static NativeProperties)
|
||||
-> *mut JSObject {
|
||||
let proto = CreateInterfacePrototypeObject(cx, global, protoProto,
|
||||
protoClass, members);
|
||||
let proto = CreateInterfacePrototypeObject(cx, global, proto_proto,
|
||||
proto_class, members);
|
||||
|
||||
unsafe {
|
||||
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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue