aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2016-07-14 13:05:01 -0400
committerJosh Matthews <josh@joshmatthews.net>2016-07-14 13:27:41 -0400
commit2aef518ce672b8037913fb1a33980475e02259f8 (patch)
treee0d1a1286ce653115c661867ad286ece6a138b43 /components/script/script_thread.rs
parent0e4865ea1ada7294d89581704f047b521f985c69 (diff)
downloadservo-2aef518ce672b8037913fb1a33980475e02259f8.tar.gz
servo-2aef518ce672b8037913fb1a33980475e02259f8.zip
Make task queue API usable from non-main threads.
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index 788ec212a72..4fd9bc32bcc 100644
--- a/components/script/script_thread.rs
+++ b/components/script/script_thread.rs
@@ -1227,7 +1227,7 @@ impl ScriptThread {
// https://html.spec.whatwg.org/multipage/#the-end step 7
let handler = box DocumentProgressHandler::new(Trusted::new(doc));
- self.dom_manipulation_task_source.queue(handler, doc.window()).unwrap();
+ self.dom_manipulation_task_source.queue(handler, GlobalRef::Window(doc.window())).unwrap();
self.constellation_chan.send(ConstellationMsg::LoadComplete(pipeline)).unwrap();
}