mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Deindent a giant loop guarded by an !is_empty() condition.
This commit is contained in:
parent
ba7629a17e
commit
5c2ac8cf8b
1 changed files with 123 additions and 126 deletions
|
@ -764,13 +764,11 @@ impl PropertyDeclarationBlock {
|
|||
}
|
||||
|
||||
// Step 3.3
|
||||
let shorthands = declaration.shorthands();
|
||||
if !shorthands.is_empty() {
|
||||
// Step 3.3.1 is done by checking already_serialized while
|
||||
// iterating below.
|
||||
|
||||
// Step 3.3.2
|
||||
for &shorthand in shorthands {
|
||||
for &shorthand in declaration.shorthands() {
|
||||
let properties = shorthand.longhands();
|
||||
|
||||
// Substep 2 & 3
|
||||
|
@ -901,7 +899,6 @@ impl PropertyDeclarationBlock {
|
|||
// preferred order.
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Step 3.3.4
|
||||
if already_serialized.contains(property) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue