commit | 58605429dc978099c398d0d183017e9543a26425 | [log] [tgz] |
---|---|---|
author | Koji Ishii <kojii@chromium.org> | Tue Nov 13 02:19:45 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Nov 13 02:19:45 2018 |
tree | 3e0aac5715d2a4bc4cdc7313c36681781bd0818b | |
parent | 0197d39377877cf4ca694ce8473c64727c0c0724 [diff] |
[LayoutNG] Reduces the size of NGPhysical{Box|Text}Fragment This patch reduces the size of: * NGPhysicalBoxFragment by a pointer, by removing |style_| from NGPhysicalFragment. This field is used only for line box and for ellipsis, and thus it is moved to each subclasses. * NGPhysicalTextFragment by 16 bytes, by moving |self_ink_overflow_| and |style_| to RareData. Quick investigation shows that |self_ink_overflow_| is different from |LocalRect()| in 10-20% of the time (on Linux, google.com and a few other sites.) Change-Id: I225edd42d6d9488611ffe2fa7ef9b11b7e9da4a1 Bug: 635619, 636993 Reviewed-on: https://chromium-review.googlesource.com/c/1331102 Reviewed-by: Aleks Totic <atotic@chromium.org> Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#607444}
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 .