mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fix my typo on commit. Rest of the fixes will be here soon.
This commit is contained in:
parent
b874e76455
commit
5f961f9fd9
1 changed files with 4 additions and 4 deletions
|
@ -230,7 +230,7 @@ impl SessionHistoryEntry {
|
|||
}
|
||||
|
||||
#[allow(unsafe_code)]
|
||||
unsafe fn getSubframeWindow(cx: *mut JSContext,
|
||||
unsafe fn GetSubframeWindow(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 = GetSubframeWindow(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 = GetSubframeWindow(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 = GetSubframeWindow(cx, proxy, id);
|
||||
if let Some(window) = window {
|
||||
window.to_jsval(cx, vp);
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue