aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/utils.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-01-29 19:15:04 +0100
committerMs2ger <ms2ger@gmail.com>2015-01-29 19:40:39 +0100
commitd752cdc44f4e0bb924538ee4ae758f71236b4483 (patch)
tree4aeb10eaa1a3a3fb264631c7a98b5fdc5cca2b6a /components/script/dom/bindings/utils.rs
parentd0627a2592c0fdddbaa78b45ead0c7842dcc8f2e (diff)
downloadservo-d752cdc44f4e0bb924538ee4ae758f71236b4483.tar.gz
servo-d752cdc44f4e0bb924538ee4ae758f71236b4483.zip
Rename CreateDOMGlobal to create_dom_global.
Diffstat (limited to 'components/script/dom/bindings/utils.rs')
-rw-r--r--components/script/dom/bindings/utils.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/bindings/utils.rs b/components/script/dom/bindings/utils.rs
index 960926fdd41..5c68dfce33d 100644
--- a/components/script/dom/bindings/utils.rs
+++ b/components/script/dom/bindings/utils.rs
@@ -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() {