mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +01:00
style: Make sure to not run any style invalidation in an unstyled children only traversal.
Bug: 1402472 Reviewed-by: bholley MozReview-Commit-ID: IFPA7LJpvsZ
This commit is contained in:
parent
352b129dc5
commit
fed5960f2c
1 changed files with 6 additions and 0 deletions
|
@ -838,6 +838,12 @@ where
|
||||||
propagated_hint,
|
propagated_hint,
|
||||||
child.implemented_pseudo_element());
|
child.implemented_pseudo_element());
|
||||||
|
|
||||||
|
// Make sure to not run style invalidation of styled elements in an
|
||||||
|
// unstyled-children-only traversal.
|
||||||
|
if child_data.is_some() && flags.intersects(traversal_flags::UnstyledOnly) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if let Some(ref mut child_data) = child_data {
|
if let Some(ref mut child_data) = child_data {
|
||||||
// Propagate the parent restyle hint, that may make us restyle the whole
|
// Propagate the parent restyle hint, that may make us restyle the whole
|
||||||
// subtree.
|
// subtree.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue