[SH-Blink] Fixes for link to text generation logic.
1. Reset range counters when new generation is requested. 2. Use ranges when selection starts and ends in the same block which has nested block 3. Fix crash when selection starts or ends with a non text node which has children. Crash is because using length of text content to find last position is incorrect when there are nested children. We should use Position::LastPositionInNode(*node) instead. Bug: 1129650 Change-Id: I13e305f67c28aca7643903f96e258be8fbf8e9f3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2533123 Commit-Queue: Gayane Petrosyan <gayane@chromium.org> Reviewed-by:David Bokan <bokan@chromium.org> Cr-Commit-Position: refs/heads/master@{#827375}
Showing
Please register or sign in to comment