aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/construct.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-07-27 16:48:38 +0200
committerMs2ger <ms2ger@gmail.com>2015-07-27 19:57:38 +0200
commitcf793a88130d3c5415f540183fb18fa28d53f83d (patch)
tree5c45638e6715c49d29ed68f7f827c1f01501bcc9 /components/layout/construct.rs
parent3984e3901130a629293361c5eb8366e00b824a2f (diff)
downloadservo-cf793a88130d3c5415f540183fb18fa28d53f83d.tar.gz
servo-cf793a88130d3c5415f540183fb18fa28d53f83d.zip
Inline ThreadSafeLayoutNode::get_style.
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,