diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-01-29 19:06:38 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-01-29 19:06:38 +0100 |
commit | a0f5250cb8226363c4c1ccb914f15634614f2759 (patch) | |
tree | 7cdcb890f888be1dadb2c876bc4a40ce83db5c68 /components/script/dom/browsercontext.rs | |
parent | ab52927ac5407e3a9057a03e2207c2dfb10ff572 (diff) | |
download | servo-a0f5250cb8226363c4c1ccb914f15634614f2759.tar.gz servo-a0f5250cb8226363c4c1ccb914f15634614f2759.zip |
Rename GetArrayIndexFromId to get_array_index_from_id.
Diffstat (limited to 'components/script/dom/browsercontext.rs')
-rw-r--r-- | components/script/dom/browsercontext.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/browsercontext.rs b/components/script/dom/browsercontext.rs index f3e52d0f46d..3d486a3fe11 100644 --- a/components/script/dom/browsercontext.rs +++ b/components/script/dom/browsercontext.rs @@ -9,7 +9,7 @@ use dom::bindings::js::{OptionalRootable, OptionalRootedRootable, ResultRootable use dom::bindings::js::{OptionalRootedReference, OptionalOptionalRootedRootable}; use dom::bindings::proxyhandler::{get_property_descriptor, fill_property_descriptor}; use dom::bindings::utils::{Reflectable, WindowProxyHandler}; -use dom::bindings::utils::{GetArrayIndexFromId}; +use dom::bindings::utils::get_array_index_from_id; use dom::document::{Document, DocumentHelpers}; use dom::window::Window; use dom::window::WindowHelpers; @@ -100,7 +100,7 @@ impl SessionHistoryEntry { } unsafe fn GetSubframeWindow(cx: *mut JSContext, proxy: *mut JSObject, id: jsid) -> Option<Temporary<Window>> { - let index = GetArrayIndexFromId(cx, id); + let index = get_array_index_from_id(cx, id); if let Some(index) = index { let target = GetProxyPrivate(proxy).to_object(); let win: Root<Window> = unwrap_jsmanaged(target).unwrap().root(); @@ -139,7 +139,7 @@ unsafe extern fn getOwnPropertyDescriptor(cx: *mut JSContext, proxy: *mut JSObje unsafe extern fn defineProperty(cx: *mut JSContext, proxy: *mut JSObject, id: jsid, desc: *mut JSPropertyDescriptor) -> bool { - if GetArrayIndexFromId(cx, id).is_some() { + if get_array_index_from_id(cx, id).is_some() { // Spec says to Reject whether this is a supported index or not, // since we have no indexed setter or indexed creator. That means // throwing in strict mode (FIXME: Bug 828137), doing nothing in @@ -182,7 +182,7 @@ unsafe extern fn get(cx: *mut JSContext, proxy: *mut JSObject, receiver: *mut JS } unsafe extern fn set(cx: *mut JSContext, proxy: *mut JSObject, _receiver: *mut JSObject, id: jsid, _strict: bool, vp: *mut JSVal) -> bool { - if GetArrayIndexFromId(cx, id).is_some() { + if get_array_index_from_id(cx, id).is_some() { // Reject (which means throw if and only if strict) the set. // FIXME: Throw return true; |