aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglrenderingcontext.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-10-01 04:15:47 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2016-10-06 20:59:12 +0200
commitf789e73fd2cf3d88d4447978a82ac6d629a1edf4 (patch)
treed600730e878907d18dcc255148d410606fbc8697 /components/script/dom/webglrenderingcontext.rs
parentae3763e7b35fd4836d28b396ef4fa8abda0912d1 (diff)
downloadservo-f789e73fd2cf3d88d4447978a82ac6d629a1edf4.tar.gz
servo-f789e73fd2cf3d88d4447978a82ac6d629a1edf4.zip
Introduce GlobalScope::constellation_chan
Diffstat (limited to 'components/script/dom/webglrenderingcontext.rs')
-rw-r--r--components/script/dom/webglrenderingcontext.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/webglrenderingcontext.rs b/components/script/dom/webglrenderingcontext.rs
index 4b6e8b2cefd..1b29bd47621 100644
--- a/components/script/dom/webglrenderingcontext.rs
+++ b/components/script/dom/webglrenderingcontext.rs
@@ -133,7 +133,7 @@ impl WebGLRenderingContext {
attrs: GLContextAttributes)
-> Result<WebGLRenderingContext, String> {
let (sender, receiver) = ipc::channel().unwrap();
- let constellation_chan = global.constellation_chan();
+ let constellation_chan = global.as_global_scope().constellation_chan();
constellation_chan.send(ConstellationMsg::CreateWebGLPaintThread(size, attrs, sender))
.unwrap();
let result = receiver.recv().unwrap();