diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-08-19 17:42:18 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-08-20 13:59:46 +0200 |
commit | 0f37b209cb7f0e351b3d889b4067716e34ee4391 (patch) | |
tree | 438e25d52f03c6f2183f34d6ac3a16b997a3e31b /components/layout/animation.rs | |
parent | c1b196b7cb7e5efd3cd4de0c9562dcca5da34564 (diff) | |
download | servo-0f37b209cb7f0e351b3d889b4067716e34ee4391.tar.gz servo-0f37b209cb7f0e351b3d889b4067716e34ee4391.zip |
stylo: Remove a lot of the restyle damage related complexity.
The only reason why we had the `existing_style_for_style_damage` bit is to apply
some optimizations that we don't have anymore.
I still want to reintroduce a few of them, at least for the non-eager
pseudo-element case... But I think I won't need this at all.
This allows us to remove a fair amount of Gecko code too.
Diffstat (limited to 'components/layout/animation.rs')
-rw-r--r-- | components/layout/animation.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/components/layout/animation.rs b/components/layout/animation.rs index ebbba82fcc6..19f621f7fdc 100644 --- a/components/layout/animation.rs +++ b/components/layout/animation.rs @@ -161,9 +161,10 @@ pub fn recalc_style_for_animations(context: &LayoutContext, &mut fragment.style, &ServoMetricsProvider); let difference = - RestyleDamage::compute_style_difference(&old_style, - &old_style, - &fragment.style); + RestyleDamage::compute_style_difference( + &old_style, + &fragment.style, + ); damage |= difference.damage; } } |