aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/context.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2015-11-06 23:01:38 +0100
committerMs2ger <Ms2ger@gmail.com>2015-11-07 11:23:47 +0100
commit8fc75704c972453804d8ec69184f584cd3313dc3 (patch)
treef84f018b11aecd106a8ec62225ad41f21d768cbe /components/layout/context.rs
parent552a03fde66b5869d77892d52da4f2a3df3f4cdf (diff)
downloadservo-8fc75704c972453804d8ec69184f584cd3313dc3.tar.gz
servo-8fc75704c972453804d8ec69184f584cd3313dc3.zip
Wrap SharedLayoutContext::new_animations_sender in a Mutex.
Diffstat (limited to 'components/layout/context.rs')
-rw-r--r--components/layout/context.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/components/layout/context.rs b/components/layout/context.rs
index 5a7bbdfed8f..eb5c19cc596 100644
--- a/components/layout/context.rs
+++ b/components/layout/context.rs
@@ -105,7 +105,7 @@ pub struct SharedLayoutContext {
/// A channel on which new animations that have been triggered by style recalculation can be
/// sent.
- pub new_animations_sender: Sender<Animation>,
+ pub new_animations_sender: Mutex<Sender<Animation>>,
/// A channel to send canvas renderers to paint task, in order to correctly paint the layers
pub canvas_layers_sender: Sender<(LayerId, IpcSender<CanvasMsg>)>,
@@ -123,7 +123,6 @@ pub struct SharedLayoutContext {
// FIXME(#6569) This implementations is unsound:
// XXX UNSOUND!!! for image_cache_task
// XXX UNSOUND!!! for stylist
-// XXX UNSOUND!!! for new_animations_sender
// XXX UNSOUND!!! for canvas_layers_sender
#[allow(unsafe_code)]
unsafe impl Sync for SharedLayoutContext {}