aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/incremental.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/incremental.rs')
-rw-r--r--components/layout/incremental.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/components/layout/incremental.rs b/components/layout/incremental.rs
index 6f60e9a2ab8..de89c187120 100644
--- a/components/layout/incremental.rs
+++ b/components/layout/incremental.rs
@@ -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
}