s/CachedStyleSharingData/ValidationData.

I still think CachedStyleSharingData should be the name, but not going to fight
over it.
This commit is contained in:
Emilio Cobos Álvarez 2017-05-30 11:23:59 +02:00
parent 0adc02a317
commit 7db2776348
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 37 additions and 34 deletions

View file

@ -855,17 +855,19 @@ pub trait MatchMethods : TElement {
//
// If we do have the results, grab them here to satisfy the borrow
// checker.
let revalidation_match_results = context.thread_local
.current_element_info
.as_mut().unwrap()
.cached_style_sharing_data
.take();
let validation_data =
context.thread_local
.current_element_info
.as_mut().unwrap()
.validation_data
.take();
context.thread_local
.style_sharing_candidate_cache
.insert_if_possible(self,
data.styles().primary.values(),
primary_results.relations,
revalidation_match_results);
validation_data);
}
child_cascade_requirement