mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Include transform changes in list that cause incremental reflows.
Also ensure that 3d translations get layers. Fixes #8329.
This commit is contained in:
parent
f17f89059a
commit
f555e3861c
3 changed files with 40 additions and 29 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue