Include transform changes in list that cause incremental reflows.

Also ensure that 3d translations get layers.

Fixes #8329.
This commit is contained in:
Glenn Watson 2015-11-17 16:53:33 +10:00
parent f17f89059a
commit f555e3861c
3 changed files with 40 additions and 29 deletions

View file

@ -191,6 +191,12 @@ pub fn compute_damage(old: &Option<Arc<ComputedValues>>, new: &ComputedValues) -
get_font.font_size, get_font.font_stretch
]);
// If the layer requirements of this flow have changed due to the value
// of the transform, then reflow is required to rebuild the layers.
if old.transform_requires_layer() != new.transform_requires_layer() {
damage.insert(rebuild_and_reflow());
}
// FIXME: test somehow that we checked every CSS property
damage
}