aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/window.rs
diff options
context:
space:
mode:
authorKeegan McAllister <kmcallister@mozilla.com>2013-08-09 15:39:55 -0700
committerKeegan McAllister <kmcallister@mozilla.com>2013-08-15 13:56:29 -0700
commite917ff353ba4bbe151f152b4d216e44db46c7174 (patch)
treed90eedbc1a91c988280ba85a87f277ddbbd971f5 /src/components/script/dom/window.rs
parent307f1074d399b35eb884f872ede3c13bfaf39140 (diff)
downloadservo-e917ff353ba4bbe151f152b4d216e44db46c7174.tar.gz
servo-e917ff353ba4bbe151f152b4d216e44db46c7174.zip
Stub out some things that need changes for newrt
brson and I will work on these next.
Diffstat (limited to 'src/components/script/dom/window.rs')
-rw-r--r--src/components/script/dom/window.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/script/dom/window.rs b/src/components/script/dom/window.rs
index b6f028f2081..a9b07e0b320 100644
--- a/src/components/script/dom/window.rs
+++ b/src/components/script/dom/window.rs
@@ -22,8 +22,6 @@ use std::comm::Chan;
use std::io;
use std::ptr;
use js::jsapi::JSVal;
-use extra::timer;
-use extra::uv_global_loop;
pub enum TimerControlMsg {
TimerMessage_Fire(~TimerData),
@@ -141,6 +139,7 @@ impl BindingObject for Window {
impl Window {
pub fn SetTimeout(&self, _cx: *JSContext, callback: JSVal, timeout: i32) -> i32 {
+ /*
let timeout = int::max(0, timeout) as uint;
// Post a delayed message to the per-window timer task; it will dispatch it
@@ -153,6 +152,8 @@ impl Window {
timeout,
&self.timer_chan,
TimerMessage_Fire(data));
+ */
+ fail!("stubbed out!");
return 0; //TODO return handle into list of active timers
}