Make |HonorEditingBoundaryAtOrAfter()| to work correctly for nested editable
This patch changes |HonorEditingBoundaryAtOrAfter()| to handle nested editable. Before this patch, |HonorEditingBoundaryAtOrAfter()| returns null position for editable position anchored by non-editable position. After this patch, |HonorEditingBoundaryAtOrAfter()| returns the last position in the highest non-editable ancestor of |anchor| Note: This patch is a preparation of the patch[1] which changes finding word boundary in the block instead of inside editing boundary. Example: In below HTML, current code finds word boundary in "ABC", but the patch[1] finds from "abcABCdef". <div contenteditable>abc<span contenteditable=false>A^BC</span>def</div> where "^" is starting position to find word boundary. [1] http://crrev.com/c/737981 Simplify word granularity handling Change-Id: I1fa702cba0bd48e8eec642c008ddda8fd063a6b8 Reviewed-on: https://chromium-review.googlesource.com/970130 Commit-Queue: Yoshifumi Inoue <yosin@chromium.org> Reviewed-by:Xiaocheng Hu <xiaochengh@chromium.org> Reviewed-by:
Yoichi Osato <yoichio@chromium.org> Cr-Commit-Position: refs/heads/master@{#545031}
Showing
Please register or sign in to comment