[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/807758Reviewed-by:Koji Ishii <kojii@chromium.org> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#521758}
Showing
Please register or sign in to comment