mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Remove some unneeded indirections in the invalidation code.
MozReview-Commit-ID: 5h5SE3ieC0A Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
This commit is contained in:
parent
f0999365e2
commit
afb09536f9
1 changed files with 6 additions and 6 deletions
|
@ -317,7 +317,7 @@ where
|
||||||
fn invalidate_pseudo_element_or_nac(
|
fn invalidate_pseudo_element_or_nac(
|
||||||
&mut self,
|
&mut self,
|
||||||
child: E,
|
child: E,
|
||||||
invalidations: &InvalidationVector<'b>,
|
invalidations: &[Invalidation<'b>],
|
||||||
) -> bool {
|
) -> bool {
|
||||||
let mut sibling_invalidations = InvalidationVector::new();
|
let mut sibling_invalidations = InvalidationVector::new();
|
||||||
|
|
||||||
|
@ -342,7 +342,7 @@ where
|
||||||
fn invalidate_child(
|
fn invalidate_child(
|
||||||
&mut self,
|
&mut self,
|
||||||
child: E,
|
child: E,
|
||||||
invalidations: &InvalidationVector<'b>,
|
invalidations: &[Invalidation<'b>],
|
||||||
sibling_invalidations: &mut InvalidationVector<'b>,
|
sibling_invalidations: &mut InvalidationVector<'b>,
|
||||||
) -> bool {
|
) -> bool {
|
||||||
let mut invalidations_for_descendants = InvalidationVector::new();
|
let mut invalidations_for_descendants = InvalidationVector::new();
|
||||||
|
@ -389,7 +389,7 @@ where
|
||||||
|
|
||||||
fn invalidate_nac(
|
fn invalidate_nac(
|
||||||
&mut self,
|
&mut self,
|
||||||
invalidations: &InvalidationVector<'b>,
|
invalidations: &[Invalidation<'b>],
|
||||||
) -> bool {
|
) -> bool {
|
||||||
let mut any_nac_root = false;
|
let mut any_nac_root = false;
|
||||||
|
|
||||||
|
@ -407,7 +407,7 @@ where
|
||||||
fn invalidate_dom_descendants_of(
|
fn invalidate_dom_descendants_of(
|
||||||
&mut self,
|
&mut self,
|
||||||
parent: E::ConcreteNode,
|
parent: E::ConcreteNode,
|
||||||
invalidations: &InvalidationVector<'b>,
|
invalidations: &[Invalidation<'b>],
|
||||||
) -> bool {
|
) -> bool {
|
||||||
let mut any_descendant = false;
|
let mut any_descendant = false;
|
||||||
|
|
||||||
|
@ -441,7 +441,7 @@ where
|
||||||
/// descendants, and invalidate style on them.
|
/// descendants, and invalidate style on them.
|
||||||
fn invalidate_descendants(
|
fn invalidate_descendants(
|
||||||
&mut self,
|
&mut self,
|
||||||
invalidations: &InvalidationVector<'b>,
|
invalidations: &[Invalidation<'b>],
|
||||||
) -> bool {
|
) -> bool {
|
||||||
if invalidations.is_empty() {
|
if invalidations.is_empty() {
|
||||||
return false;
|
return false;
|
||||||
|
@ -546,7 +546,7 @@ where
|
||||||
/// Returns whether our style was invalidated as a result.
|
/// Returns whether our style was invalidated as a result.
|
||||||
fn process_descendant_invalidations(
|
fn process_descendant_invalidations(
|
||||||
&mut self,
|
&mut self,
|
||||||
invalidations: &InvalidationVector<'b>,
|
invalidations: &[Invalidation<'b>],
|
||||||
descendant_invalidations: &mut InvalidationVector<'b>,
|
descendant_invalidations: &mut InvalidationVector<'b>,
|
||||||
sibling_invalidations: &mut InvalidationVector<'b>,
|
sibling_invalidations: &mut InvalidationVector<'b>,
|
||||||
) -> bool {
|
) -> bool {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue