aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/incremental.rs
diff options
context:
space:
mode:
authorGlenn Watson <gw@intuitionlibrary.com>2015-11-17 16:53:33 +1000
committerGlenn Watson <gw@intuitionlibrary.com>2015-11-18 10:28:37 +1000
commitf555e3861c38be259559bd801d2c14daf3b1100a (patch)
treeccbae7cf47a1c3996b7db2f47cd5c3435973732b /components/layout/incremental.rs
parentf17f89059a3681b7bd2da0a04259353ca21c8122 (diff)
downloadservo-f555e3861c38be259559bd801d2c14daf3b1100a.tar.gz
servo-f555e3861c38be259559bd801d2c14daf3b1100a.zip
Include transform changes in list that cause incremental reflows.
Also ensure that 3d translations get layers. Fixes #8329.
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
}