mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Trivially simplify a condition.
Bug: 1466963 Reviewed-by: xidorn MozReview-Commit-ID: L9LzpPt4js4
This commit is contained in:
parent
3c7fb2a217
commit
cdbc409759
1 changed files with 8 additions and 8 deletions
|
@ -517,15 +517,15 @@ impl PropertyDeclarationBlock {
|
|||
continue;
|
||||
}
|
||||
|
||||
let important = self.declarations_importance[i];
|
||||
// For declarations from parsing, non-important declarations
|
||||
// shouldn't override existing important one.
|
||||
if important && !importance.important() &&
|
||||
matches!(source, DeclarationSource::Parsing) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if matches!(source, DeclarationSource::Parsing) {
|
||||
let important = self.declarations_importance[i];
|
||||
|
||||
// For declarations from parsing, non-important declarations
|
||||
// shouldn't override existing important one.
|
||||
if important && !importance.important() {
|
||||
return false;
|
||||
}
|
||||
|
||||
// As a compatibility hack, specially on Android,
|
||||
// don't allow to override a prefixed webkit display
|
||||
// value with an unprefixed version from parsing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue