aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/sequential.rs
diff options
context:
space:
mode:
authorClark Gaebel <cgaebel@mozilla.com>2014-10-15 10:57:25 -0700
committerClark Gaebel <cgaebel@mozilla.com>2014-10-15 11:04:05 -0700
commit76ed7484eb35d72d62c7cddc5375aed394536066 (patch)
tree4ec691fa40395e18779a037733e9a5d3ad55efd1 /components/layout/sequential.rs
parentafc144aa3974db099ec1e66fc974d8e5ef25f74c (diff)
downloadservo-76ed7484eb35d72d62c7cddc5375aed394536066.tar.gz
servo-76ed7484eb35d72d62c7cddc5375aed394536066.zip
Use the Deref traits for FlowRefs.
This patch switches FlowRefs to using the Deref and DerefMut traits, instead of the custom `get` and `get_mut` functions.
Diffstat (limited to 'components/layout/sequential.rs')
-rw-r--r--components/layout/sequential.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/sequential.rs b/components/layout/sequential.rs
index 1cd8216f760..e0448435088 100644
--- a/components/layout/sequential.rs
+++ b/components/layout/sequential.rs
@@ -52,7 +52,7 @@ pub fn traverse_flow_tree_preorder(root: &mut FlowRef,
let layout_context = LayoutContext::new(shared_layout_context);
- let root = root.get_mut();
+ let root = root.deref_mut();
if layout_context.shared.opts.bubble_inline_sizes_separately {
let bubble_inline_sizes = BubbleISizes { layout_context: &layout_context };
@@ -85,5 +85,5 @@ pub fn build_display_list_for_subtree(root: &mut FlowRef,
let compute_absolute_positions = ComputeAbsolutePositions { layout_context: &layout_context };
let build_display_list = BuildDisplayList { layout_context: &layout_context };
- doit(root.get_mut(), compute_absolute_positions, build_display_list);
+ doit(root.deref_mut(), compute_absolute_positions, build_display_list);
}