commit | 43a377d1697ac74ec5e45f739ee90becbcf253df | [log] [tgz] |
---|---|---|
author | Vladimir Levin <vmpstr@chromium.org> | Thu Dec 06 16:15:58 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Dec 06 16:15:58 2018 |
tree | 845f434ba852ea097667ab95283090b866a44b9e | |
parent | df691e06ba773e8f2bd42f8020a96e303da324d1 [diff] |
[DL] Don't immediately update the locked element frame rect. This patch ensures that we do layout in a pending frame rect, which is only put in place for children of the locked element during layout. After the promise is resolved, we put the pending frame rect as the active one and ensure that we relayout the previously locked box itself. This means that if the promise resolution, for example, removed the element as is the case in https://docs.google.com/document/d/1VrcVA5JyBmYn0Yi4wjPt1l9ce5Mhf-zu6o63p_mt98w/edit Then we never commit what was a pending layout and never see a flash of laid out content. R=chrishtr@chromium.org, mstensho@chromium.org Bug: 907613, 882663 Change-Id: I7d03ae73ea4cb96c17ce8bb4162718155c2072be Reviewed-on: https://chromium-review.googlesource.com/c/1358969 Reviewed-by: Morten Stenshorne <mstensho@chromium.org> Commit-Queue: vmpstr <vmpstr@chromium.org> Cr-Commit-Position: refs/heads/master@{#614373}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .