Move NGLogicalLineItems to NGInlineChildLayoutContext
This patch moves the ownership of |NGLogicalLineItems| from |NGInlineLayoutAlgorithm| to |NGInlineChildLayoutContext|. This change: * Avoids moving |NGLogicalLineItems| to |NGFragmentItemsBuilder|. |NGLogicalLineItems| has an inline size that moving is more expensive than regular |Vector|. * Can reuse the buffer (if expanded) for the next line. Also, when clearing |NGLogicalLineItems|, make sure it doesn't release the allocated buffer. Bug: 982194 Change-Id: I8fa2416769618823876cd2a2669208e60623faeb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2259755 Commit-Queue: Koji Ishii <kojii@chromium.org> Commit-Queue: Yoshifumi Inoue <yosin@chromium.org> Reviewed-by:Kent Tamura <tkent@chromium.org> Reviewed-by:
Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#781269}
Showing
Please register or sign in to comment