mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Auto merge of #18602 - emilio:invalidation-unstyled-only, r=bholley
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:
commit
5a6b90b14f
1 changed files with 6 additions and 0 deletions
|
@ -838,6 +838,12 @@ where
|
|||
propagated_hint,
|
||||
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 {
|
||||
// Propagate the parent restyle hint, that may make us restyle the whole
|
||||
// subtree.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue