commit | 2ae89b5690bf34bee4807a949f8e2ce11a61f1b9 | [log] [tgz] |
---|---|---|
author | Koji Ishii <kojii@chromium.org> | Fri Feb 08 07:19:37 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Feb 08 07:19:37 2019 |
tree | b210cc0edd652600b31a1c0e23216cd26107ffe7 | |
parent | 6026fe0b9cecb0702f74713814f7f0996d793730 [diff] |
[LayoutNG] Fix LocalVisualRect to include LocalSelectionRect From the discussion with wangxianzhu@, NG differs from legacy in that LocalVisualRect does not include LocalSelectionRect, and it is causing additional computation in PaintInvalidator. This wasn't the intention, and the fix in PaintInvalidator lead to additional work in pre-paint phase. This patch fixes LocalVisualRect to include LocalSelectionRect when it is selected. LayoutObject::IsSelected turned out to be slow for this purpose. Its improvement is in a separate CL:1460576. Also this change figured out that LocalSelectionRect is in different coordinate than legacy. Filed issue 930034 for it to work on later as there might be impacts to other code. Bug: 636993, 930034 Change-Id: If02d17dbc88e3d7195050d87b8a3b425f4158375 Reviewed-on: https://chromium-review.googlesource.com/c/1457812 Reviewed-by: Yoshifumi Inoue <yosin@chromium.org> Reviewed-by: Xianzhu Wang <wangxianzhu@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#630233}
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 .