Skip to content

Commit

Permalink
Drop mut from pseudo_style for the argument of cascade_internal.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroyuki Ikezoe committed Mar 24, 2017
1 parent 4838add commit 4c4b019
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/style/matching.rs
Expand Up @@ -472,7 +472,7 @@ trait PrivateMatchMethods: TElement {
fn cascade_internal(&self,
context: &StyleContext<Self>,
primary_style: &ComputedStyle,
pseudo_style: &mut Option<(&PseudoElement, &mut ComputedStyle)>,
pseudo_style: &Option<(&PseudoElement, &mut ComputedStyle)>,
booleans: &CascadeBooleans)
-> Arc<ComputedValues> {
let shared_context = context.shared;
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 4c4b019

Please sign in to comment.