style: Move MatchingContext to the InvalidationProcessor.

This avoids threading the quirks mode and nth-index cache around, and prevents
having to thread even more arguments down for the querySelector stuff (at least
VisitedHandlingMode and the style scope).

Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
This commit is contained in:
Emilio Cobos Álvarez 2017-10-21 13:48:21 +02:00
parent 5ac0f5121e
commit 258efb70df
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 39 additions and 48 deletions

View file

@ -263,13 +263,12 @@ impl ElementData {
shared_context,
element,
self,
nth_index_cache,
);
let invalidator = TreeStyleInvalidator::new(
element,
shared_context.quirks_mode(),
stack_limit_checker,
nth_index_cache,
&mut processor,
);