[NGFragmentItem] Add NGFragmentItem::ItemsFor()
This patch adds |NGFragmentItem::ItemsFor()| that retrieves |NGFragmentItem| associated with a |LayoutObject|. The plan is to store the index to |LayoutObject| so that this operation does not need to iterate items, but this patch adds a slow-but-simple version. The optimization will be in following patches. Bug: 982194 Change-Id: I91f2e85a98dffec47797f9cbe37af40e3c5cecd0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1768176 Auto-Submit: Koji Ishii <kojii@chromium.org> Reviewed-by:Emil A Eklund <eae@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#690178}
Showing
Please register or sign in to comment