[LayoutNG] Add IsAfterNonCollapsedCharacter(node, offset) API
This patch adds a new API to LayoutNG offset mapping, so that we can easily check if a given DOM offset is right after a non-collapsed character. This patch is a preparation for adding an NG version of LayoutText::ContainsCaretOffset(). Bug: 771398 Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_layout_ng Change-Id: I93e8a89089661c6f17da6a7a847f75914cb36f75 Reviewed-on: https://chromium-review.googlesource.com/724230 Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Reviewed-by:Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#509915}
Showing
Please register or sign in to comment