From 4c4b01954c471c87e65ef1adb0f0754ddf5fef01 Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Fri, 24 Mar 2017 09:54:12 +0900 Subject: [PATCH] Drop mut from pseudo_style for the argument of cascade_internal. --- components/style/matching.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/style/matching.rs b/components/style/matching.rs index 8820108766a9..2cd06236473d 100644 --- a/components/style/matching.rs +++ b/components/style/matching.rs @@ -472,7 +472,7 @@ trait PrivateMatchMethods: TElement { fn cascade_internal(&self, context: &StyleContext, primary_style: &ComputedStyle, - pseudo_style: &mut Option<(&PseudoElement, &mut ComputedStyle)>, + pseudo_style: &Option<(&PseudoElement, &mut ComputedStyle)>, booleans: &CascadeBooleans) -> Arc { let shared_context = context.shared; @@ -570,7 +570,7 @@ trait PrivateMatchMethods: TElement { // Compute the new values. let mut new_values = self.cascade_internal(context, primary_style, - &mut pseudo_style, &booleans); + &pseudo_style, &booleans); // Handle animations. if booleans.animate {