mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Rustfmt and fix tidy on recent changes.
This commit is contained in:
parent
6eedebe2c8
commit
ed2e9ce482
16 changed files with 78 additions and 57 deletions
|
@ -78,7 +78,8 @@ pub struct DescendantInvalidationLists<'a> {
|
|||
|
||||
impl<'a> DescendantInvalidationLists<'a> {
|
||||
fn is_empty(&self) -> bool {
|
||||
self.dom_descendants.is_empty() && self.slotted_descendants.is_empty() &&
|
||||
self.dom_descendants.is_empty() &&
|
||||
self.slotted_descendants.is_empty() &&
|
||||
self.parts.is_empty()
|
||||
}
|
||||
}
|
||||
|
@ -179,9 +180,7 @@ impl<'a> Invalidation<'a> {
|
|||
Combinator::Child | Combinator::Descendant | Combinator::PseudoElement => {
|
||||
InvalidationKind::Descendant(DescendantInvalidationKind::Dom)
|
||||
},
|
||||
Combinator::Part => {
|
||||
InvalidationKind::Descendant(DescendantInvalidationKind::Part)
|
||||
},
|
||||
Combinator::Part => InvalidationKind::Descendant(DescendantInvalidationKind::Part),
|
||||
Combinator::SlotAssignment => {
|
||||
InvalidationKind::Descendant(DescendantInvalidationKind::Slotted)
|
||||
},
|
||||
|
@ -506,7 +505,6 @@ where
|
|||
any
|
||||
}
|
||||
|
||||
|
||||
fn invalidate_slotted_elements(&mut self, invalidations: &[Invalidation<'b>]) -> bool {
|
||||
if invalidations.is_empty() {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue