[Layout] Avoid double relayout on window resize
While investigating youtube button, I've noticed that window resize was always causing double relayouts. What happens is that on window resize we do one layout, notice size has changed, and always force another layout. I think SetNeedsLayout call is not needed, as MarkViewportConstrainedObjectsForLayout will already mark ancestors for layout if needed. https://chromium-review.googlesource.com/c/chromium/src/+/1649086 Bug: 970171 Change-Id: I4b65486557a798ab00ca939baea93af3706bdccb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1649066Reviewed-by:Morten Stenshorne <mstensho@chromium.org> Commit-Queue: Aleks Totic <atotic@chromium.org> Cr-Commit-Position: refs/heads/master@{#667299}
Showing
Please register or sign in to comment