[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/1331102Reviewed-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}
Showing
Please register or sign in to comment