diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-01-29 17:19:45 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-01-29 17:28:07 +0100 |
commit | 0b9549746bc3bcada536fd2b6f7b232eecc1460a (patch) | |
tree | e0989a442d10cac53a7f75859b3db0af9d1d1bcc /components/script/dom | |
parent | f84cbd402565757f6b87adec7d66f2e387101467 (diff) | |
download | servo-0b9549746bc3bcada536fd2b6f7b232eecc1460a.tar.gz servo-0b9549746bc3bcada536fd2b6f7b232eecc1460a.zip |
Rename GetExpandoObject to get_expando_object.
Diffstat (limited to 'components/script/dom')
-rw-r--r-- | components/script/dom/bindings/codegen/CodegenRust.py | 8 | ||||
-rw-r--r-- | components/script/dom/bindings/proxyhandler.rs | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py index bd046a78d55..514a194556f 100644 --- a/components/script/dom/bindings/codegen/CodegenRust.py +++ b/components/script/dom/bindings/codegen/CodegenRust.py @@ -3691,7 +3691,7 @@ class CGDOMJSProxyHandler_getOwnPropertyDescriptor(CGAbstractExternMethod): namedGet = "" return setOrIndexedGet + """\ -let expando: *mut JSObject = GetExpandoObject(proxy); +let expando: *mut JSObject = get_expando_object(proxy); //if (!xpc::WrapperFactory::IsXrayWrapper(proxy) && (expando = GetExpandoObject(proxy))) { if !expando.is_null() { let flags = if set { JSRESOLVE_ASSIGNING } else { 0 } | JSRESOLVE_QUALIFIED; @@ -3829,7 +3829,7 @@ class CGDOMJSProxyHandler_hasOwn(CGAbstractExternMethod): named = "" return indexed + """\ -let expando: *mut JSObject = GetExpandoObject(proxy); +let expando: *mut JSObject = get_expando_object(proxy); if !expando.is_null() { let mut b: JSBool = 1; let ok = JS_HasPropertyById(cx, expando, id, &mut b) != 0; @@ -3854,7 +3854,7 @@ class CGDOMJSProxyHandler_get(CGAbstractExternMethod): self.descriptor = descriptor def getBody(self): getFromExpando = """\ -let expando = GetExpandoObject(proxy); +let expando = get_expando_object(proxy); if !expando.is_null() { let mut hasProp = 0; if JS_HasPropertyById(cx, expando, id, &mut hasProp) == 0 { @@ -4580,7 +4580,7 @@ class CGBindingRoot(CGThing): 'dom::bindings::error::throw_dom_exception', 'dom::bindings::error::throw_type_error', 'dom::bindings::proxyhandler', - 'dom::bindings::proxyhandler::{FillPropertyDescriptor, GetExpandoObject}', + 'dom::bindings::proxyhandler::{FillPropertyDescriptor, get_expando_object}', 'dom::bindings::proxyhandler::{get_property_descriptor}', 'dom::bindings::proxyhandler::{getOwnPropertyNames_, enumerate_}', 'dom::bindings::str::ByteString', diff --git a/components/script/dom/bindings/proxyhandler.rs b/components/script/dom/bindings/proxyhandler.rs index b43c9bc5c16..7d055caed91 100644 --- a/components/script/dom/bindings/proxyhandler.rs +++ b/components/script/dom/bindings/proxyhandler.rs @@ -79,7 +79,7 @@ pub unsafe extern fn define_property(cx: *mut JSContext, proxy: *mut JSObject, /// Deletes an expando off the given `proxy`. pub unsafe extern fn delete(cx: *mut JSContext, proxy: *mut JSObject, id: jsid, bp: *mut bool) -> bool { - let expando = GetExpandoObject(proxy); + let expando = get_expando_object(proxy); if expando.is_null() { *bp = true; return true; @@ -103,7 +103,7 @@ pub fn object_to_string(cx: *mut JSContext, name: &str) -> *mut JSString { } /// Get the expando object, or null if there is none. -pub fn GetExpandoObject(obj: *mut JSObject) -> *mut JSObject { +pub fn get_expando_object(obj: *mut JSObject) -> *mut JSObject { unsafe { assert!(is_dom_proxy(obj)); let val = GetProxyExtra(obj, JSPROXYSLOT_EXPANDO); @@ -120,7 +120,7 @@ pub fn GetExpandoObject(obj: *mut JSObject) -> *mut JSObject { pub fn EnsureExpandoObject(cx: *mut JSContext, obj: *mut JSObject) -> *mut JSObject { unsafe { assert!(is_dom_proxy(obj)); - let mut expando = GetExpandoObject(obj); + let mut expando = get_expando_object(obj); if expando.is_null() { expando = JS_NewObjectWithGivenProto(cx, ptr::null_mut(), ptr::null_mut(), |