Pass a straight Vec to DisplayList::new().

There is no reason to have a runtime check here.
This commit is contained in:
Ms2ger 2016-06-28 16:38:14 +02:00
parent 62f7e8fe4b
commit aefa941626
2 changed files with 2 additions and 8 deletions

View file

@ -918,8 +918,7 @@ impl LayoutThread {
root_background_color));
rw_data.display_list =
Some(Arc::new(DisplayList::new(root_stacking_context,
&mut Some(display_list_entries))))
Some(Arc::new(DisplayList::new(root_stacking_context, display_list_entries)))
}
if data.goal == ReflowGoal::ForDisplay {