aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/construct.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/construct.rs')
-rw-r--r--components/layout/construct.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/layout/construct.rs b/components/layout/construct.rs
index 8d6983d5e95..7e53bfee798 100644
--- a/components/layout/construct.rs
+++ b/components/layout/construct.rs
@@ -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,