Update child-style-dirty chain on slot re-assignment.
With flat tree style recalc enabled, we need to update the new flat tree ancestors with ChildNeedsStyleRecalc() when the slot assignment changes. SetNeedsStyleRecalc() will only do that if the node was clean. Otherwise it assumes the child-dirty bits are already marked. If we are already dirty, call MarkAncestorsWithChildNeedsStyleRecalc() to update the child-dirty chain on FlatTreeParentChanged(). Also, added an early return for disconnected elements. Bug: 972752 Change-Id: I5bc76ee70eb310f2d2bc1765dcfcd15e4883f0d6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1893060Reviewed-by:Mason Freed <masonfreed@chromium.org> Commit-Queue: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#712157}
Showing
Please register or sign in to comment