commit | 5c535a9802050a5d9549451ac4b32086a7d47456 | [log] [tgz] |
---|---|---|
author | Koji Ishii <kojii@chromium.org> | Fri Feb 08 05:57:38 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Feb 08 05:57:38 2019 |
tree | b62114b15707db3de0229f04a4baefdbeaa57abd | |
parent | acb54b0339af9f674e80cb4e1349fff8d871e56f [diff] |
Simplify LayoutObject::IsSelected It turned out that |LayoutObject:IsSelected()| is not as fast as it was expected, when used in very hot functions. Maybe it could be inlined in the official build, but keeping this fast and small helps running perf tests at least. This patch also turns |IsTextFragment()| into a bit-field, to avoid a virtual call which prevents inlining fast code path. This patch is to help LayoutNG pre-paint faster. Bug: 636993 Change-Id: I42223c2ee954fe5fc25e2c3fff0c07f639ee6dd7 Reviewed-on: https://chromium-review.googlesource.com/c/1460576 Reviewed-by: Yoshifumi Inoue <yosin@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#630217}
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 .