Inline ThreadSafeLayoutNode::get_style.

This commit is contained in:
Ms2ger 2015-07-27 16:48:38 +02:00
parent 3984e39011
commit cf793a8813
2 changed files with 7 additions and 11 deletions

View file

@ -1247,9 +1247,9 @@ impl<'a> FlowConstructor<'a> {
return false
}
let mut style = node.style().clone();
let mut layout_data_ref = node.mutate_layout_data();
let layout_data = layout_data_ref.as_mut().expect("no layout data");
let mut style = (*node.get_style(&layout_data)).clone();
let damage = layout_data.data.restyle_damage;
match node.construction_result_mut(layout_data) {
&mut ConstructionResult::None => true,