aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/construct.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-07-17 14:30:33 +0200
committerMs2ger <ms2ger@gmail.com>2015-07-17 14:51:58 +0200
commit46b36242a37413d84089308a1339ecf28fc9a825 (patch)
tree38fe5ba62e7707398570d366a5431ec9d65e9307 /components/layout/construct.rs
parentbb444df679346033afc42d9f2b6011b1bbcd5d16 (diff)
downloadservo-46b36242a37413d84089308a1339ecf28fc9a825.tar.gz
servo-46b36242a37413d84089308a1339ecf28fc9a825.zip
Use Ref::map to make ThreadSafeLayoutNode::style safe.
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 746ecef1e6b..aad12f4e770 100644
--- a/components/layout/construct.rs
+++ b/components/layout/construct.rs
@@ -667,7 +667,7 @@ impl<'a> FlowConstructor<'a> {
self.create_fragments_for_node_text_content(&mut initial_fragments,
node,
- node.style());
+ &*node.style());
}
self.build_flow_for_block_starting_with_fragments(flow, node, initial_fragments)