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:
Emilio Cobos Álvarez 2017-09-23 03:34:39 +02:00
parent 352b129dc5
commit fed5960f2c
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

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.