aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/browsingcontext.rs
diff options
context:
space:
mode:
authorArthur Marble <arthur@info9.net>2016-09-18 01:02:57 -0500
committerArthur Marble <arthur@info9.net>2016-09-18 01:02:57 -0500
commitdbec9d845472251b73e444d80a493173f11a0482 (patch)
tree7105771ae57fb97ce39a536c87997cf5d28ed0d2 /components/script/dom/browsingcontext.rs
parent5fa54177cafdfd321972d3050f8979e6a4f81592 (diff)
downloadservo-dbec9d845472251b73e444d80a493173f11a0482.tar.gz
servo-dbec9d845472251b73e444d80a493173f11a0482.zip
More code refactoring (exampleVar to example_var)
Diffstat (limited to 'components/script/dom/browsingcontext.rs')
-rw-r--r--components/script/dom/browsingcontext.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/browsingcontext.rs b/components/script/dom/browsingcontext.rs
index 02d153296ae..21693f781ca 100644
--- a/components/script/dom/browsingcontext.rs
+++ b/components/script/dom/browsingcontext.rs
@@ -230,7 +230,7 @@ impl SessionHistoryEntry {
}
#[allow(unsafe_code)]
-unsafe fn GetSubframeWindow(cx: *mut JSContext,
+unsafe fn get_subframe_window(cx: *mut JSContext,
proxy: HandleObject,
id: HandleId)
-> Option<Root<Window>> {
@@ -251,7 +251,7 @@ unsafe extern "C" fn getOwnPropertyDescriptor(cx: *mut JSContext,
id: HandleId,
mut desc: MutableHandle<PropertyDescriptor>)
-> bool {
- let window = GetSubframeWindow(cx, proxy, id);
+ let window = get_subframe_window(cx, proxy, id);
if let Some(window) = window {
rooted!(in(cx) let mut val = UndefinedValue());
window.to_jsval(cx, val.handle_mut());
@@ -300,7 +300,7 @@ unsafe extern "C" fn has(cx: *mut JSContext,
id: HandleId,
bp: *mut bool)
-> bool {
- let window = GetSubframeWindow(cx, proxy, id);
+ let window = get_subframe_window(cx, proxy, id);
if window.is_some() {
*bp = true;
return true;
@@ -323,7 +323,7 @@ unsafe extern "C" fn get(cx: *mut JSContext,
id: HandleId,
vp: MutableHandleValue)
-> bool {
- let window = GetSubframeWindow(cx, proxy, id);
+ let window = get_subframe_window(cx, proxy, id);
if let Some(window) = window {
window.to_jsval(cx, vp);
return true;