mirror of
https://github.com/servo/servo.git
synced 2025-06-21 15:49:04 +01:00
Minor code cleanup in css::matching
This commit is contained in:
parent
b7ba2157a1
commit
48922fc261
1 changed files with 4 additions and 5 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue