Move LayoutTask::first_reflow out of its Cell.

As the LayoutTask is uniquely owned, and we no longer have borrows of its
fields hanging around, we can use mutable references to simplify some code.
This commit is contained in:
Ms2ger 2015-11-06 13:15:28 +01:00
parent 3f4c734cf4
commit 8674345d61
2 changed files with 16 additions and 17 deletions

View file

@ -139,7 +139,7 @@ pub fn recalc_style_for_animations(flow: &mut Flow,
}
/// Handles animation updates.
pub fn tick_all_animations(layout_task: &LayoutTask, rw_data: &mut LayoutTaskData) {
pub fn tick_all_animations(layout_task: &mut LayoutTask, rw_data: &mut LayoutTaskData) {
layout_task.tick_animations(rw_data);
layout_task.script_chan