mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
make layout task fields private
This commit is contained in:
parent
01ff78b438
commit
66b85fe4fc
2 changed files with 22 additions and 29 deletions
|
@ -8,10 +8,8 @@ use clock_ticks;
|
|||
use flow::{self, Flow};
|
||||
use gfx::display_list::OpaqueNode;
|
||||
use incremental::{self, RestyleDamage};
|
||||
use layout_task::{LayoutTask, LayoutTaskData};
|
||||
use msg::constellation_msg::{AnimationState, ConstellationChan, Msg, PipelineId};
|
||||
use script::layout_interface::Animation;
|
||||
use script_traits::ConstellationControlMsg;
|
||||
use std::collections::HashMap;
|
||||
use std::collections::hash_map::Entry;
|
||||
use std::sync::mpsc::{Sender, Receiver};
|
||||
|
@ -138,12 +136,3 @@ pub fn recalc_style_for_animations(flow: &mut Flow,
|
|||
recalc_style_for_animations(kid, animations)
|
||||
}
|
||||
}
|
||||
|
||||
/// Handles animation updates.
|
||||
pub fn tick_all_animations(layout_task: &mut LayoutTask, rw_data: &mut LayoutTaskData) {
|
||||
layout_task.tick_animations(rw_data);
|
||||
|
||||
layout_task.script_chan
|
||||
.send(ConstellationControlMsg::TickAllAnimations(layout_task.id))
|
||||
.unwrap();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue