Reland "[LayoutNG] Introduce NGInlineFragmentTraversal in place of NGInlineFragmentIterator"
This is a reland of e62d46f6 The original change was reverted due to failures in the new unit tests, which assume box fragment creation for inline elements <b>, <i> or <u>, which however is not true. This reland ensures box fragment creation by adding border to those elements. Original change's description: > [LayoutNG] Introduce NGInlineFragmentTraversal in place of NGInlineFragmentIterator > > This patch introduces a utility class NGInlineFragmentTraversal, so that we can > conveniently retrieve: > - ancestors of a given physical fragment in a container > - descendants of a given physical fragment > - physical fragments in a container with the given layout object > > The utility class supersedes the existing NGInlineFragmentIterator class. Follow > up patches will convert clients of NGInlineFragmentIterator to use the traversal > class instead. > > Bug: 636993 > Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_layout_ng > Change-Id: I7f3f553df18291df50f60075ab84294dd394d86c > Reviewed-on: https://chromium-review.googlesource.com/807758 > Reviewed-by: Koji Ishii <kojii@chromium.org> > Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> > Cr-Commit-Position: refs/heads/master@{#521758} Tbr: eae@chromium.org, kojii@chromium.org, yoichio@chromium.org, yosin@chromium.org Bug: 636993 Change-Id: I616a89ac0ca1360681e47bbc45317ffca5d99d90 Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_layout_ng Reviewed-on: https://chromium-review.googlesource.com/809302Reviewed-by:Xiaocheng Hu <xiaochengh@chromium.org> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#521864}
Showing
Please register or sign in to comment