mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
style: Deindent some code in matching.rs
This commit is contained in:
parent
3e1ae65e43
commit
3bfe529728
1 changed files with 66 additions and 64 deletions
|
@ -352,13 +352,17 @@ trait PrivateMatchMethods: TElement {
|
|||
}
|
||||
|
||||
match difference.change {
|
||||
StyleChange::Unchanged => ChildCascadeRequirement::CanSkipCascade,
|
||||
StyleChange::Unchanged => {
|
||||
return ChildCascadeRequirement::CanSkipCascade
|
||||
},
|
||||
StyleChange::Changed { reset_only } => {
|
||||
// If inherited properties changed, the best we can do is
|
||||
// cascade the children.
|
||||
if !reset_only {
|
||||
return ChildCascadeRequirement::MustCascadeChildren
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
let old_display = old_values.get_box().clone_display();
|
||||
let new_display = new_values.get_box().clone_display();
|
||||
|
@ -423,8 +427,6 @@ trait PrivateMatchMethods: TElement {
|
|||
// properties, we can stop the cascade.
|
||||
ChildCascadeRequirement::MustCascadeChildrenIfInheritResetStyle
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "servo")]
|
||||
fn update_animations_for_cascade(&self,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue