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:
bors-servo 2017-09-22 21:16:43 -05:00 committed by GitHub
commit 5a6b90b14f

View file

@ -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.