[DL]: Handle whitespace reattachment for locked elements
ReattachLayoutTree/RebuildLayoutTree can't be called on elements with the NeedsStyleRecalc/ChildNeedsStyleRecalc flag set, which might be the case for locked elements because we block style recalc. Marking of the NeedsReattachLayoutTree/ChildNeedsReattachLayoutTree is done inside RecalcStyle and whitespace reattachment marking. The first case is OK because we already block RecalcStyle, this CL is fixing the second case. In this CL, we save a per-DisplayLockContext |whitespace_reattach_set_| that will save locked elements needing whitespace reattachment. After we finished style recalc on locked elements (after forced update or when the budget allows), we will mark those elements as needing layout tree reattachment, just like the global whitespace reattachment in StyleEngine. Bug: 882663, 912949 Change-Id: Ib83845601db24342a30d556689c2a08244491a33 Reviewed-on: https://chromium-review.googlesource.com/c/1460581 Commit-Queue: Rakina Zata Amni <rakina@chromium.org> Reviewed-by:Rune Lillesveen <futhark@chromium.org> Reviewed-by:
vmpstr <vmpstr@chromium.org> Cr-Commit-Position: refs/heads/master@{#635430}
Showing
Please register or sign in to comment