More accurate layout shift tracking for texts
Previously when a text shifted, we assumed the whole area below the text in the containing block shifted, which might report too big shifted area, e.g. if the text shift was just in one line. Now pass the logical height of the shifted text and calculate the shifted area for the text only. Shifts of other texts below are checked separately. Bug: 1121405 Change-Id: I029c5dfcf6d0537a9be4f8c33cac9d63bd4b4f1d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2386842 Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Reviewed-by:Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#803755}
Showing
Please register or sign in to comment