mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +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)]
|
#[allow(unsafe_code)]
|
||||||
unsafe fn getSubframeWindow(cx: *mut JSContext,
|
unsafe fn GetSubframeWindow(cx: *mut JSContext,
|
||||||
proxy: HandleObject,
|
proxy: HandleObject,
|
||||||
id: HandleId)
|
id: HandleId)
|
||||||
-> Option<Root<Window>> {
|
-> Option<Root<Window>> {
|
||||||
|
@ -251,7 +251,7 @@ unsafe extern "C" fn getOwnPropertyDescriptor(cx: *mut JSContext,
|
||||||
id: HandleId,
|
id: HandleId,
|
||||||
mut desc: MutableHandle<PropertyDescriptor>)
|
mut desc: MutableHandle<PropertyDescriptor>)
|
||||||
-> bool {
|
-> bool {
|
||||||
let window = getSubframeWindow(cx, proxy, id);
|
let window = GetSubframeWindow(cx, proxy, id);
|
||||||
if let Some(window) = window {
|
if let Some(window) = window {
|
||||||
rooted!(in(cx) let mut val = UndefinedValue());
|
rooted!(in(cx) let mut val = UndefinedValue());
|
||||||
window.to_jsval(cx, val.handle_mut());
|
window.to_jsval(cx, val.handle_mut());
|
||||||
|
@ -300,7 +300,7 @@ unsafe extern "C" fn has(cx: *mut JSContext,
|
||||||
id: HandleId,
|
id: HandleId,
|
||||||
bp: *mut bool)
|
bp: *mut bool)
|
||||||
-> bool {
|
-> bool {
|
||||||
let window = getSubframeWindow(cx, proxy, id);
|
let window = GetSubframeWindow(cx, proxy, id);
|
||||||
if window.is_some() {
|
if window.is_some() {
|
||||||
*bp = true;
|
*bp = true;
|
||||||
return true;
|
return true;
|
||||||
|
@ -323,7 +323,7 @@ unsafe extern "C" fn get(cx: *mut JSContext,
|
||||||
id: HandleId,
|
id: HandleId,
|
||||||
vp: MutableHandleValue)
|
vp: MutableHandleValue)
|
||||||
-> bool {
|
-> bool {
|
||||||
let window = getSubframeWindow(cx, proxy, id);
|
let window = GetSubframeWindow(cx, proxy, id);
|
||||||
if let Some(window) = window {
|
if let Some(window) = window {
|
||||||
window.to_jsval(cx, vp);
|
window.to_jsval(cx, vp);
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue