aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/components/main/css/matching.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/components/main/css/matching.rs b/src/components/main/css/matching.rs
index 312deb89bd1..3b883a315fa 100644
--- a/src/components/main/css/matching.rs
+++ b/src/components/main/css/matching.rs
@@ -340,12 +340,11 @@ impl<'ln> PrivateMatchMethods for LayoutNode<'ln> {
let cacheable;
match parent_style {
Some(ref parent_style) => {
- let cached_computed_values;
let cache_entry = applicable_declarations_cache.find(applicable_declarations);
- match cache_entry {
- None => cached_computed_values = None,
- Some(ref style) => cached_computed_values = Some(&**style),
- }
+ let cached_computed_values = match cache_entry {
+ None => None,
+ Some(ref style) => Some(&**style),
+ };
let (the_style, is_cacheable) = cascade(applicable_declarations,
shareable,
Some(&***parent_style),