forked from mirrors/gecko-dev
Bug 1484575 - Simplify PropertyDeclarationBlock::get a little. r=xidorn
Depends On D3747 Differential Revision: https://phabricator.services.mozilla.com/D3748 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
2ccae542f5
commit
771b9fb2f1
1 changed files with 2 additions and 8 deletions
|
|
@ -305,14 +305,8 @@ impl PropertyDeclarationBlock {
|
|||
}
|
||||
}
|
||||
|
||||
self.declarations.iter().enumerate().find(|&(_, decl)| decl.id() == property).map(|(i, decl)| {
|
||||
let importance = if self.declarations_importance[i] {
|
||||
Importance::Important
|
||||
} else {
|
||||
Importance::Normal
|
||||
};
|
||||
(decl, importance)
|
||||
})
|
||||
self.declaration_importance_iter()
|
||||
.find(|(declaration, _)| declaration.id() == property)
|
||||
}
|
||||
|
||||
fn shorthand_to_css(
|
||||
|
|
|
|||
Loading…
Reference in a new issue