diff options
author | bors-servo <release+servo@mozilla.com> | 2014-05-26 14:25:35 -0400 |
---|---|---|
committer | bors-servo <release+servo@mozilla.com> | 2014-05-26 14:25:35 -0400 |
commit | f057719bf88eb72daba799d59edce718221610ba (patch) | |
tree | 3abd1430a2e65b702b5ee0b51778c5d55125b67c /src/components/script/dom/window.rs | |
parent | ea00ee8e509a46f6827254a5df35fe84c59f158b (diff) | |
parent | 51d2891c9b4a6958a51cb14f86928d440ffa2b6a (diff) | |
download | servo-f057719bf88eb72daba799d59edce718221610ba.tar.gz servo-f057719bf88eb72daba799d59edce718221610ba.zip |
auto merge of #2487 : Ms2ger/servo/sm-mut, r=jdm
Diffstat (limited to 'src/components/script/dom/window.rs')
-rw-r--r-- | src/components/script/dom/window.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/components/script/dom/window.rs b/src/components/script/dom/window.rs index e8d4a121dcd..42804033815 100644 --- a/src/components/script/dom/window.rs +++ b/src/components/script/dom/window.rs @@ -82,7 +82,7 @@ pub struct Window { } impl Window { - pub fn get_cx(&self) -> *JSContext { + pub fn get_cx(&self) -> *mut JSContext { let js_info = self.page().js_info(); (**js_info.get_ref().js_context).ptr } @@ -132,10 +132,10 @@ pub trait WindowMethods { fn Confirm(&self, _message: DOMString) -> bool; fn Prompt(&self, _message: DOMString, _default: DOMString) -> Option<DOMString>; fn Print(&self); - fn ShowModalDialog(&self, _cx: *JSContext, _url: DOMString, _argument: Option<JSVal>) -> JSVal; - fn SetTimeout(&mut self, _cx: *JSContext, callback: JSVal, timeout: i32) -> i32; + fn ShowModalDialog(&self, _cx: *mut JSContext, _url: DOMString, _argument: Option<JSVal>) -> JSVal; + fn SetTimeout(&mut self, _cx: *mut JSContext, callback: JSVal, timeout: i32) -> i32; fn ClearTimeout(&mut self, handle: i32); - fn SetInterval(&mut self, _cx: *JSContext, callback: JSVal, timeout: i32) -> i32; + fn SetInterval(&mut self, _cx: *mut JSContext, callback: JSVal, timeout: i32) -> i32; fn ClearInterval(&mut self, handle: i32); fn Window(&self) -> Temporary<Window>; fn Self(&self) -> Temporary<Window>; @@ -227,11 +227,11 @@ impl<'a> WindowMethods for JSRef<'a, Window> { fn Print(&self) { } - fn ShowModalDialog(&self, _cx: *JSContext, _url: DOMString, _argument: Option<JSVal>) -> JSVal { + fn ShowModalDialog(&self, _cx: *mut JSContext, _url: DOMString, _argument: Option<JSVal>) -> JSVal { NullValue() } - fn SetTimeout(&mut self, _cx: *JSContext, callback: JSVal, timeout: i32) -> i32 { + fn SetTimeout(&mut self, _cx: *mut JSContext, callback: JSVal, timeout: i32) -> i32 { self.set_timeout_or_interval(callback, timeout, false) } @@ -244,7 +244,7 @@ impl<'a> WindowMethods for JSRef<'a, Window> { self.active_timers.remove(&TimerId(handle)); } - fn SetInterval(&mut self, _cx: *JSContext, callback: JSVal, timeout: i32) -> i32 { + fn SetInterval(&mut self, _cx: *mut JSContext, callback: JSVal, timeout: i32) -> i32 { self.set_timeout_or_interval(callback, timeout, true) } @@ -394,7 +394,7 @@ impl<'a> PrivateWindowHelpers for JSRef<'a, Window> { } impl Window { - pub fn new(cx: *JSContext, + pub fn new(cx: *mut JSContext, page: Rc<Page>, script_chan: ScriptChan, compositor: Box<ScriptListener>, |