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;
|
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),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue