mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
s/CachedStyleSharingData/ValidationData.
I still think CachedStyleSharingData should be the name, but not going to fight over it.
This commit is contained in:
parent
0adc02a317
commit
7db2776348
3 changed files with 37 additions and 34 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue