mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Drop mut from pseudo_style for the argument of cascade_internal.
This commit is contained in:
parent
4838addb34
commit
4c4b01954c
1 changed files with 2 additions and 2 deletions
|
@ -472,7 +472,7 @@ trait PrivateMatchMethods: TElement {
|
||||||
fn cascade_internal(&self,
|
fn cascade_internal(&self,
|
||||||
context: &StyleContext<Self>,
|
context: &StyleContext<Self>,
|
||||||
primary_style: &ComputedStyle,
|
primary_style: &ComputedStyle,
|
||||||
pseudo_style: &mut Option<(&PseudoElement, &mut ComputedStyle)>,
|
pseudo_style: &Option<(&PseudoElement, &mut ComputedStyle)>,
|
||||||
booleans: &CascadeBooleans)
|
booleans: &CascadeBooleans)
|
||||||
-> Arc<ComputedValues> {
|
-> Arc<ComputedValues> {
|
||||||
let shared_context = context.shared;
|
let shared_context = context.shared;
|
||||||
|
@ -570,7 +570,7 @@ trait PrivateMatchMethods: TElement {
|
||||||
|
|
||||||
// Compute the new values.
|
// Compute the new values.
|
||||||
let mut new_values = self.cascade_internal(context, primary_style,
|
let mut new_values = self.cascade_internal(context, primary_style,
|
||||||
&mut pseudo_style, &booleans);
|
&pseudo_style, &booleans);
|
||||||
|
|
||||||
// Handle animations.
|
// Handle animations.
|
||||||
if booleans.animate {
|
if booleans.animate {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue