aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/style/properties/declaration_block.rs11
1 files changed, 4 insertions, 7 deletions
diff --git a/components/style/properties/declaration_block.rs b/components/style/properties/declaration_block.rs
index e951d25897d..06e75a0a093 100644
--- a/components/style/properties/declaration_block.rs
+++ b/components/style/properties/declaration_block.rs
@@ -509,13 +509,10 @@ impl PropertyDeclarationBlock {
if let PropertyDeclaration::Display(old_display) = *slot {
use properties::longhands::display::computed_value::T as display;
- let new_display = match declaration {
- PropertyDeclaration::Display(new_display) => new_display,
- _ => unreachable!("How could the declaration id be the same?"),
- };
-
- if display::should_ignore_parsed_value(old_display, new_display) {
- return false;
+ if let PropertyDeclaration::Display(new_display) = declaration {
+ if display::should_ignore_parsed_value(old_display, new_display) {
+ return false;
+ }
}
}