style: Require an nth-index cache for invalidation.

This commit is contained in:
Emilio Cobos Álvarez 2017-11-29 21:21:14 +01:00
parent dbe3136a05
commit 02ad6d3d90
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
4 changed files with 15 additions and 15 deletions

View file

@ -71,12 +71,12 @@ impl<'a, 'b: 'a, E: TElement> StateAndAttrInvalidationProcessor<'a, 'b, E> {
cut_off_inheritance: bool,
element: E,
data: &'a mut ElementData,
nth_index_cache: Option<&'a mut NthIndexCache>,
nth_index_cache: &'a mut NthIndexCache,
) -> Self {
let matching_context = MatchingContext::new_for_visited(
MatchingMode::Normal,
None,
nth_index_cache,
Some(nth_index_cache),
VisitedHandlingMode::AllLinksVisitedAndUnvisited,
shared_context.quirks_mode(),
);