DescriptionWebLocalFrameImpl::selectWordAroundPosition should select a word before space.
If you have a "foo| ", WebLocalFrameImpl::selectWordAroundPosition
selects space after the caret.
This is from the Selection::expandUsingGranularity behavior.
It is used widely including double-click word selection on desktop.
Thus we can not change the behavior.
I changed the implementation to use VisibleUnit functions directly.
New implementation is that we try to find a word on right side and left side.
In addition, move implement from WebLocalFrameImpl to FrameSelection.
BUG=397696
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185359
Patch Set 1 : update #
Total comments: 8
Patch Set 2 : Update #
Total comments: 1
Patch Set 3 : Use VisibleUnit functions and add test cases #
Total comments: 6
Patch Set 4 : nit picks #
Total comments: 10
Patch Set 5 : Adapt to selectWordAroundPosition too #
Messages
Total messages: 25 (9 generated)
|