mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
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:
parent
9c51d31b05
commit
e052666153
1 changed files with 3 additions and 3 deletions
|
@ -492,9 +492,9 @@ impl PropertyDeclarationBlock {
|
||||||
/// declaration with more importance, and will ensure that, if inserted,
|
/// declaration with more importance, and will ensure that, if inserted,
|
||||||
/// it's inserted at the end of the declaration block.
|
/// it's inserted at the end of the declaration block.
|
||||||
///
|
///
|
||||||
/// * For `DeclarationSource::CssOm`, this will override importance and
|
/// * For `DeclarationSource::CssOm`, this will override importance.
|
||||||
/// will preserve the original position on the block.
|
|
||||||
///
|
///
|
||||||
|
/// Returns whether the declaration has changed.
|
||||||
pub fn push(
|
pub fn push(
|
||||||
&mut self,
|
&mut self,
|
||||||
declaration: PropertyDeclaration,
|
declaration: PropertyDeclaration,
|
||||||
|
@ -522,7 +522,7 @@ impl PropertyDeclarationBlock {
|
||||||
// shouldn't override existing important one.
|
// shouldn't override existing important one.
|
||||||
if important && !importance.important() &&
|
if important && !importance.important() &&
|
||||||
matches!(source, DeclarationSource::Parsing) {
|
matches!(source, DeclarationSource::Parsing) {
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if matches!(source, DeclarationSource::Parsing) {
|
if matches!(source, DeclarationSource::Parsing) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue