mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Store a Sender<ConstellationControlMsg> in LayoutTask.
This commit is contained in:
parent
4f9ec8915d
commit
fdafc5c360
4 changed files with 11 additions and 13 deletions
|
@ -12,7 +12,7 @@ use gfx::display_list::OpaqueNode;
|
|||
use layout_task::{LayoutTask, LayoutTaskData};
|
||||
use msg::constellation_msg::{AnimationState, Msg, PipelineId};
|
||||
use script::layout_interface::Animation;
|
||||
use script_traits::{ConstellationControlMsg, ScriptControlChan};
|
||||
use script_traits::ConstellationControlMsg;
|
||||
use std::collections::HashMap;
|
||||
use std::collections::hash_map::Entry;
|
||||
use std::sync::Arc;
|
||||
|
@ -128,7 +128,6 @@ pub fn recalc_style_for_animations(flow: &mut Flow,
|
|||
pub fn tick_all_animations(layout_task: &LayoutTask, rw_data: &mut LayoutTaskData) {
|
||||
layout_task.tick_animations(rw_data);
|
||||
|
||||
let ScriptControlChan(ref chan) = layout_task.script_chan;
|
||||
chan.send(ConstellationControlMsg::TickAllAnimations(layout_task.id)).unwrap();
|
||||
layout_task.script_chan.send(ConstellationControlMsg::TickAllAnimations(layout_task.id)).unwrap();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue