Minor code cleanup in css::matching

This commit is contained in:
Matt Brubeck 2014-06-04 13:48:35 -07:00
parent b7ba2157a1
commit 48922fc261

View file

@ -340,12 +340,11 @@ impl<'ln> PrivateMatchMethods for LayoutNode<'ln> {
let cacheable; let cacheable;
match parent_style { match parent_style {
Some(ref parent_style) => { Some(ref parent_style) => {
let cached_computed_values;
let cache_entry = applicable_declarations_cache.find(applicable_declarations); let cache_entry = applicable_declarations_cache.find(applicable_declarations);
match cache_entry { let cached_computed_values = match cache_entry {
None => cached_computed_values = None, None => None,
Some(ref style) => cached_computed_values = Some(&**style), Some(ref style) => Some(&**style),
} };
let (the_style, is_cacheable) = cascade(applicable_declarations, let (the_style, is_cacheable) = cascade(applicable_declarations,
shareable, shareable,
Some(&***parent_style), Some(&***parent_style),