Clean up and simplify the accumulation of restyle damage.

This commit is contained in:
Bobby Holley 2017-02-09 16:55:16 -08:00
parent 0e3aeac922
commit 1f4f099efe
4 changed files with 44 additions and 58 deletions

View file

@ -276,7 +276,7 @@ pub trait TElement : PartialEq + Debug + Sized + Copy + Clone + ElementExt + Pre
/// values as an argument here, but otherwise Servo would crash due to
/// double borrows to return it.
fn existing_style_for_restyle_damage<'a>(&'a self,
current_computed_values: Option<&'a Arc<ComputedValues>>,
current_computed_values: &'a Arc<ComputedValues>,
pseudo: Option<&PseudoElement>)
-> Option<&'a PreExistingComputedValues>;