aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/proxyhandler.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-01-29 17:20:51 +0100
committerMs2ger <ms2ger@gmail.com>2015-01-29 17:28:07 +0100
commit2592045ed489a958e7bc604448e75f221f969eed (patch)
tree402440da222a3b3a32b2881fe82f9d631acf4562 /components/script/dom/bindings/proxyhandler.rs
parent0b9549746bc3bcada536fd2b6f7b232eecc1460a (diff)
downloadservo-2592045ed489a958e7bc604448e75f221f969eed.tar.gz
servo-2592045ed489a958e7bc604448e75f221f969eed.zip
Rename EnsureExpandoObject to ensure_expando_object.
Diffstat (limited to 'components/script/dom/bindings/proxyhandler.rs')
-rw-r--r--components/script/dom/bindings/proxyhandler.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/bindings/proxyhandler.rs b/components/script/dom/bindings/proxyhandler.rs
index 7d055caed91..c3645322c44 100644
--- a/components/script/dom/bindings/proxyhandler.rs
+++ b/components/script/dom/bindings/proxyhandler.rs
@@ -71,7 +71,7 @@ pub unsafe extern fn define_property(cx: *mut JSContext, proxy: *mut JSObject,
JSMSG_GETTER_ONLY) != 0;
}
- let expando = EnsureExpandoObject(cx, proxy);
+ let expando = ensure_expando_object(cx, proxy);
return JS_DefinePropertyById(cx, expando, id, (*desc).value, (*desc).getter,
(*desc).setter, (*desc).attrs) != 0;
}
@@ -117,7 +117,8 @@ pub fn get_expando_object(obj: *mut JSObject) -> *mut JSObject {
/// Get the expando object, or create it if it doesn't exist yet.
/// Fails on JSAPI failure.
-pub fn EnsureExpandoObject(cx: *mut JSContext, obj: *mut JSObject) -> *mut JSObject {
+pub fn ensure_expando_object(cx: *mut JSContext, obj: *mut JSObject)
+ -> *mut JSObject {
unsafe {
assert!(is_dom_proxy(obj));
let mut expando = get_expando_object(obj);