diff options
Diffstat (limited to 'components/layout/traversal.rs')
-rw-r--r-- | components/layout/traversal.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/traversal.rs b/components/layout/traversal.rs index 5ec9f490ada..a1e6011e3d8 100644 --- a/components/layout/traversal.rs +++ b/components/layout/traversal.rs @@ -154,7 +154,7 @@ impl<'a> PreorderDomTraversal for RecalcStyleForNode<'a> { // Check to see whether we can share a style with someone. let style_sharing_candidate_cache = - self.layout_context.style_sharing_candidate_cache(); + &mut self.layout_context.style_sharing_candidate_cache(); let sharing_result = unsafe { node.share_style_if_possible(style_sharing_candidate_cache, parent_opt.clone()) @@ -181,7 +181,7 @@ impl<'a> PreorderDomTraversal for RecalcStyleForNode<'a> { node.cascade_node(self.layout_context.shared, parent_opt, &applicable_declarations, - self.layout_context.applicable_declarations_cache(), + &mut self.layout_context.applicable_declarations_cache(), &self.layout_context.shared.new_animations_sender); } |