mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Rename CreateDOMGlobal to create_dom_global.
This commit is contained in:
parent
d0627a2592
commit
d752cdc44f
2 changed files with 4 additions and 3 deletions
|
@ -560,7 +560,8 @@ pub fn has_property_on_prototype(cx: *mut JSContext, proxy: *mut JSObject,
|
|||
}
|
||||
|
||||
/// Create a DOM global object with the given class.
|
||||
pub fn CreateDOMGlobal(cx: *mut JSContext, class: *const JSClass) -> *mut JSObject {
|
||||
pub fn create_dom_global(cx: *mut JSContext, class: *const JSClass)
|
||||
-> *mut JSObject {
|
||||
unsafe {
|
||||
let obj = JS_NewGlobalObject(cx, class, ptr::null_mut());
|
||||
if obj.is_null() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue