mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25:32 +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
|
@ -63,7 +63,7 @@ where
|
|||
fn invalidates_on_eager_pseudo_element(&self) -> bool { true }
|
||||
|
||||
fn collect_invalidations(
|
||||
&self,
|
||||
&mut self,
|
||||
element: E,
|
||||
mut data: Option<&mut ElementData>,
|
||||
nth_index_cache: Option<&mut NthIndexCache>,
|
||||
|
@ -182,7 +182,7 @@ where
|
|||
}
|
||||
|
||||
fn should_process_descendants(
|
||||
&self,
|
||||
&mut self,
|
||||
_element: E,
|
||||
data: Option<&mut ElementData>,
|
||||
) -> bool {
|
||||
|
@ -196,7 +196,7 @@ where
|
|||
}
|
||||
|
||||
fn recursion_limit_exceeded(
|
||||
&self,
|
||||
&mut self,
|
||||
_element: E,
|
||||
data: Option<&mut ElementData>,
|
||||
) {
|
||||
|
@ -206,7 +206,7 @@ where
|
|||
}
|
||||
|
||||
fn invalidated_descendants(
|
||||
&self,
|
||||
&mut self,
|
||||
element: E,
|
||||
data: Option<&mut ElementData>,
|
||||
child: E,
|
||||
|
@ -236,7 +236,7 @@ where
|
|||
}
|
||||
|
||||
fn invalidated_self(
|
||||
&self,
|
||||
&mut self,
|
||||
_element: E,
|
||||
data: Option<&mut ElementData>,
|
||||
) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue