style: Fix a typo.

Nobody looks at the result from parsing, but this is the right thing to return.

Bug: 1466963
Reviewed-by: xidorn
MozReview-Commit-ID: 9P5VARiPIAk
This commit is contained in:
Emilio Cobos Álvarez 2018-06-05 20:11:04 +02:00
parent 9c51d31b05
commit e052666153
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -492,9 +492,9 @@ impl PropertyDeclarationBlock {
/// declaration with more importance, and will ensure that, if inserted,
/// it's inserted at the end of the declaration block.
///
/// * For `DeclarationSource::CssOm`, this will override importance and
/// will preserve the original position on the block.
/// * For `DeclarationSource::CssOm`, this will override importance.
///
/// Returns whether the declaration has changed.
pub fn push(
&mut self,
declaration: PropertyDeclaration,
@ -522,7 +522,7 @@ impl PropertyDeclarationBlock {
// shouldn't override existing important one.
if important && !importance.important() &&
matches!(source, DeclarationSource::Parsing) {
return true;
return false;
}
if matches!(source, DeclarationSource::Parsing) {