style: Deindent some property declaration code.

This commit is contained in:
Emilio Cobos Álvarez 2017-11-26 17:16:01 +01:00
parent 0df51515c3
commit 47e9c88742
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -470,13 +470,16 @@ impl PropertyDeclarationBlock {
if !definitely_new { if !definitely_new {
let mut index_to_remove = None; let mut index_to_remove = None;
for (i, slot) in self.declarations.iter_mut().enumerate() { for (i, slot) in self.declarations.iter_mut().enumerate() {
if slot.id() == declaration.id() { if slot.id() != declaration.id() {
continue;
}
let important = self.declarations_importance.get(i as u32); let important = self.declarations_importance.get(i as u32);
match (important, importance.important()) { match (important, importance.important()) {
(false, true) => {} (false, true) => {}
(true, false) => { (true, false) => {
// For declarations set from the OM, less-important // For declarations set from the OM, more-important
// declarations are overridden. // declarations are overridden.
if !matches!(source, DeclarationSource::CssOm) { if !matches!(source, DeclarationSource::CssOm) {
return false return false
@ -520,7 +523,6 @@ impl PropertyDeclarationBlock {
} }
} }
} }
}
if let Some(index) = index_to_remove { if let Some(index) = index_to_remove {
self.declarations.remove(index); self.declarations.remove(index);