mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Fix indentation errors in servo rust code that tidy now finds.
This commit is contained in:
parent
57e74542ee
commit
fc34b9a14d
19 changed files with 127 additions and 127 deletions
|
@ -381,7 +381,7 @@ pub fn start_transitions_if_applicable(new_animations_sender: &Sender<Animation>
|
|||
// [1]: https://drafts.csswg.org/css-transitions/#starting
|
||||
if possibly_expired_animations.iter().any(|animation| {
|
||||
animation.has_the_same_end_value_as(&property_animation)
|
||||
}) {
|
||||
}) {
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
|
@ -160,8 +160,8 @@ impl AttrValue {
|
|||
pub fn from_comma_separated_tokenlist(tokens: String) -> AttrValue {
|
||||
let atoms = split_commas(&tokens).map(Atom::from)
|
||||
.fold(vec![], |mut acc, atom| {
|
||||
if !acc.contains(&atom) { acc.push(atom) }
|
||||
acc
|
||||
if !acc.contains(&atom) { acc.push(atom) }
|
||||
acc
|
||||
});
|
||||
AttrValue::TokenList(tokens, atoms)
|
||||
}
|
||||
|
|
|
@ -1022,7 +1022,7 @@ impl ToCss for CalcLengthOrPercentage {
|
|||
}
|
||||
|
||||
write!(dest, ")")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// A percentage value.
|
||||
|
|
|
@ -554,7 +554,7 @@ impl HasViewportPercentage for BorderWidth {
|
|||
match *self {
|
||||
BorderWidth::Thin | BorderWidth::Medium | BorderWidth::Thick => false,
|
||||
BorderWidth::Width(ref length) => length.has_viewport_percentage()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue