mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Rename CreateInterfacePrototypeObject to create_interface_prototype_object.
This commit is contained in:
parent
ffaffd9df8
commit
23743e3c20
1 changed files with 7 additions and 6 deletions
|
@ -192,8 +192,8 @@ pub fn do_create_interface_objects(cx: *mut JSContext, global: *mut JSObject,
|
||||||
dom_class: *const DOMClass,
|
dom_class: *const DOMClass,
|
||||||
members: &'static NativeProperties)
|
members: &'static NativeProperties)
|
||||||
-> *mut JSObject {
|
-> *mut JSObject {
|
||||||
let proto = CreateInterfacePrototypeObject(cx, global, proto_proto,
|
let proto = create_interface_prototype_object(cx, global, proto_proto,
|
||||||
proto_class, members);
|
proto_class, members);
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
JS_SetReservedSlot(proto, DOM_PROTO_INSTANCE_CLASS_SLOT,
|
JS_SetReservedSlot(proto, DOM_PROTO_INSTANCE_CLASS_SLOT,
|
||||||
|
@ -299,10 +299,11 @@ fn define_properties(cx: *mut JSContext, obj: *mut JSObject,
|
||||||
|
|
||||||
/// Creates the *interface prototype object*.
|
/// Creates the *interface prototype object*.
|
||||||
/// Fails on JSAPI failure.
|
/// Fails on JSAPI failure.
|
||||||
fn CreateInterfacePrototypeObject(cx: *mut JSContext, global: *mut JSObject,
|
fn create_interface_prototype_object(cx: *mut JSContext, global: *mut JSObject,
|
||||||
parentProto: *mut JSObject,
|
parentProto: *mut JSObject,
|
||||||
protoClass: &'static JSClass,
|
protoClass: &'static JSClass,
|
||||||
members: &'static NativeProperties) -> *mut JSObject {
|
members: &'static NativeProperties)
|
||||||
|
-> *mut JSObject {
|
||||||
unsafe {
|
unsafe {
|
||||||
let ourProto = JS_NewObjectWithUniqueType(cx, protoClass, &*parentProto, &*global);
|
let ourProto = JS_NewObjectWithUniqueType(cx, protoClass, &*parentProto, &*global);
|
||||||
assert!(!ourProto.is_null());
|
assert!(!ourProto.is_null());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue