[LayoutNG] Rewrite ng_caret_rect.cc on top of NGPaintFragment
This patch rewrites the NG implementation of LocalCaretRectOfPosition() on top of NGPaintFragment instead of NGPhysicalFragment. Since paint fragments store parent pointers but physical fragments don't, this patch utilizes parent pointers to stop keeping track of line boxes for each inline fragment, which simplifies the implementation. As a side product, this patch also removes a non-self-contained member function NGPhysicalLineBoxFragment::HasSoftWrapFromPreviousLine(). Bug: 822575 Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_layout_ng;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Change-Id: Idfd2af884a1933daa1d2bac265d51757949cbb14 Reviewed-on: https://chromium-review.googlesource.com/1000952 Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Reviewed-by:Yoshifumi Inoue <yosin@chromium.org> Reviewed-by:
Yoichi Osato <yoichio@chromium.org> Reviewed-by:
Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#550110}
Showing
This diff is collapsed.
Please register or sign in to comment