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:
Emilio Cobos Álvarez 2017-10-12 18:08:44 +02:00
parent 9034e6a732
commit e447f819a2
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 38 additions and 41 deletions

View file

@ -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>,
) {