[LayoutNG] Convert some offset mapping APIs to take Position
This patch changes three APIs to take Position parameters to better support mapping non-text anchored positions to LayoutNG canonical text: - IsBeforeNonCollapsedCharacter - IsAfterNonCollapsedCharacter - GetCharacterBefore By changing the API, we are also allowed to consolidate some overridden functions in LayoutTextFragment. Bug: 699017 Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_layout_ng Change-Id: Ied30ef2e26f74342b68e8b27b385436aa7afc33e Reviewed-on: https://chromium-review.googlesource.com/742689 Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Reviewed-by:Yoshifumi Inoue <yosin@chromium.org> Reviewed-by:
Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#512956}
Showing
Please register or sign in to comment