Introduce TextOffsetMapping class for text segment handling
This patch Introduces |TextOffsetMapping|[1] class to mapping between character offset in block and DOM position for ease of implementing selection modification with text segments, such as word/sentence/paragraph. This patch is a preparation of the patch[2]. [1] https://goo.gl/v2Ax8d Text Offset Mapping [2] http://crrev.com/c/737981 Simplify word granularity handling Bug: 778507 Change-Id: I63957165ab2741d5c3f1e2b1d29302541d12841b Reviewed-on: https://chromium-review.googlesource.com/983336Reviewed-by:Yoichi Osato <yoichio@chromium.org> Commit-Queue: Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#547651}
Showing
This diff is collapsed.
Please register or sign in to comment