Make SelectionModifier::Modify() to do nothing for empty selection
This patch makes |SelectionModifier::Modify()| to do nothing for empty selection to avoid calling |NextWordPosition()| with null-position. Note: |NextWordPosition()| doesn't accept null-position since the patch[1]. [1] http:/crrev.com/c/1004536 Make NextWordPosition() to utilize TextOffsetMapping Bug: 832061 Change-Id: I534af079f068f709c9b48a408988cb413a520b86 Reviewed-on: https://chromium-review.googlesource.com/1014841Reviewed-by:Xiaocheng Hu <xiaochengh@chromium.org> Commit-Queue: Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#551539}
Showing
Please register or sign in to comment