aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/canvasrenderingcontext2d.rs
diff options
context:
space:
mode:
authorPaul Rouget <me@paulrouget.com>2017-07-18 08:19:44 +0200
committerPaul Rouget <me@paulrouget.com>2017-08-15 08:22:09 +0200
commitd2413891292bfb4d5f17d7eb1e3882e07f6ac626 (patch)
tree17d2768aaa861740b6bcf638d2a3219086828a74 /components/script/dom/canvasrenderingcontext2d.rs
parent817de1573556b49038d8b704398bb32e78296a43 (diff)
downloadservo-d2413891292bfb4d5f17d7eb1e3882e07f6ac626.tar.gz
servo-d2413891292bfb4d5f17d7eb1e3882e07f6ac626.zip
make use of ScriptToConstellationChan
Diffstat (limited to 'components/script/dom/canvasrenderingcontext2d.rs')
-rw-r--r--components/script/dom/canvasrenderingcontext2d.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/canvasrenderingcontext2d.rs b/components/script/dom/canvasrenderingcontext2d.rs
index f57df77cfa4..55d2ef3ceb4 100644
--- a/components/script/dom/canvasrenderingcontext2d.rs
+++ b/components/script/dom/canvasrenderingcontext2d.rs
@@ -42,7 +42,7 @@ use net_traits::image_cache::ImageResponse;
use net_traits::image_cache::ImageState;
use net_traits::image_cache::UsePlaceholder;
use num_traits::ToPrimitive;
-use script_traits::ScriptMsg as ConstellationMsg;
+use script_traits::ScriptMsg;
use servo_url::ServoUrl;
use std::{cmp, fmt, mem};
use std::cell::Cell;
@@ -130,9 +130,9 @@ impl CanvasRenderingContext2D {
-> CanvasRenderingContext2D {
debug!("Creating new canvas rendering context.");
let (sender, receiver) = ipc::channel().unwrap();
- let constellation_chan = global.constellation_chan();
+ let script_to_constellation_chan = global.script_to_constellation_chan();
debug!("Asking constellation to create new canvas thread.");
- constellation_chan.send(ConstellationMsg::CreateCanvasPaintThread(size, sender)).unwrap();
+ script_to_constellation_chan.send(ScriptMsg::CreateCanvasPaintThread(size, sender)).unwrap();
let ipc_renderer = receiver.recv().unwrap();
debug!("Done.");
CanvasRenderingContext2D {