Refactor SelectionModifier's internal function DirectionOf()
This patch refactors the function by extracing DirectionAt() out of it, so that the logic of getting direction from VisiblePosition is abstracted. It also reduces one client of InlineBox, making it easier to transition to LayoutNG. Bug: 877263 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng Change-Id: Ifba556e3fb03b7bfa6e4ed27df5e39d07a45eb7c Reviewed-on: https://chromium-review.googlesource.com/1187630Reviewed-by:Yoichi Osato <yoichio@chromium.org> Reviewed-by:
Yoshifumi Inoue <yosin@chromium.org> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#585701}
Showing
Please register or sign in to comment