mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
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:
parent
3f4c734cf4
commit
8674345d61
2 changed files with 16 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue