mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
style: Make InvalidationProcessor methods be &mut self.
This would allow querySelector / querySelectorAll to mutate the list of matched nodes as it sees fit.
This commit is contained in:
parent
9034e6a732
commit
e447f819a2
3 changed files with 38 additions and 41 deletions
|
@ -259,14 +259,14 @@ impl ElementData {
|
|||
return InvalidationResult::empty();
|
||||
}
|
||||
|
||||
let processor = StateAndAttrInvalidationProcessor;
|
||||
let mut processor = StateAndAttrInvalidationProcessor;
|
||||
let invalidator = TreeStyleInvalidator::new(
|
||||
element,
|
||||
Some(self),
|
||||
shared_context,
|
||||
stack_limit_checker,
|
||||
nth_index_cache,
|
||||
&processor,
|
||||
&mut processor,
|
||||
);
|
||||
|
||||
let result = invalidator.invalidate();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue