Don't force re-attach for nodes without a ComputedStyle.
If the node needs a LayoutObject on the next lifecycle update, we will trigger the re-attach going from null to non-null ComputedStyle in RecalcStyle. Had to remove the DisallowTransitionScope because it relied on the lifecycle state being kVisualUpdatePending, so that the dirtying below didn't change that. However that might not be true anymore since the SetForceReattachLayoutTree() no longer does that for null ComputedStyle. Bug: 972752 Change-Id: I18a192d6303faccf400beacfa008384051a6f4f4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1886856 Commit-Queue: Rune Lillesveen <futhark@chromium.org> Reviewed-by:Kent Tamura <tkent@chromium.org> Reviewed-by:
Morten Stenshorne <mstensho@chromium.org> Cr-Commit-Position: refs/heads/master@{#711205}
Showing
Please register or sign in to comment