mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
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:
parent
5ac0f5121e
commit
258efb70df
3 changed files with 39 additions and 48 deletions
|
@ -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,
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue