[FragmentItem] Introduce next for same layout object cache in NGFragmentItem
This patch introduces next for same layout object cache in |NGFragmentItem| to make following functions faster: - NGInlineCursor::NextForSameLayoutObject() - ItemsForLayoutObject::Iterator::operator++() Once we utilize |NGInlineCursor| for all |LayoutObject::FirstInlineFragment()| usages[1], following patch will make following functions to utilize cache: - NGInlineCursor::MoveTo(const LayoutObject&) - ItemsForLayoutObject constructr [1] https://bit.ly/2MSgvxN List of FirstInlineFragment() usages Bug: 982194 Change-Id: Id34e08b0b87d9471058ee5899b0fbe6e591883f3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1930370 Commit-Queue: Yoshifumi Inoue <yosin@chromium.org> Reviewed-by:Koji Ishii <kojii@chromium.org> Auto-Submit: Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#719897}
Showing
Please register or sign in to comment