mirror of
https://github.com/servo/servo.git
synced 2025-06-13 02:44:29 +00:00
Inline ThreadSafeLayoutNode::get_style.
This commit is contained in:
parent
3984e39011
commit
cf793a8813
2 changed files with 7 additions and 11 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue