aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/animation.rs
diff options
context:
space:
mode:
authorCameron McCormack <cam@mcc.id.au>2017-05-19 17:39:15 +0800
committerEmilio Cobos Álvarez <emilio@crisal.io>2017-05-20 16:25:39 +0200
commit8b7a414b1cb61ba7bf4fc42e393abfab0d7bdcf8 (patch)
tree955e6bceda84b8d4ef9a6fbf61d8cd11fd0e4175 /components/layout/animation.rs
parent715d18d377fd85fb7a5960d6ac7ada72f29a5c05 (diff)
downloadservo-8b7a414b1cb61ba7bf4fc42e393abfab0d7bdcf8.tar.gz
servo-8b7a414b1cb61ba7bf4fc42e393abfab0d7bdcf8.zip
style: Use RestyleDamage to determine whether we must continue cascading style changes to children.
Diffstat (limited to 'components/layout/animation.rs')
-rw-r--r--components/layout/animation.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/components/layout/animation.rs b/components/layout/animation.rs
index d1673ac44a1..a054927190c 100644
--- a/components/layout/animation.rs
+++ b/components/layout/animation.rs
@@ -160,7 +160,9 @@ pub fn recalc_style_for_animations(context: &LayoutContext,
animation,
&mut fragment.style,
&ServoMetricsProvider);
- damage |= RestyleDamage::compute(&old_style, &fragment.style);
+ let difference =
+ RestyleDamage::compute_style_difference(&old_style, &fragment.style);
+ damage |= difference.damage;
}
}
});