DescriptionFix more corner cases for empty touch selection.
1) In r373606 I fixed the case where selection would select whitespace,
but that still left a broken case -- when the hit test intersects with
the empty space at the end of a textbox (which doesn't have whitespace
characters per se). Add an explicit comparison to lastPositionInNode to
cover this.
2) The same empty selection conventions apply to double-tap as well as
long-press, so extend the enum enabling this behavior to them. (Double
taps enter SelectionController as synthetic mouse events with
clickCount=2 and fromTouch=true.)
BUG=415933
Committed: https://crrev.com/18c145f35f2dbbb10b4ff7168a115b9119fef6fc
Cr-Commit-Position: refs/heads/master@{#401155}
Patch Set 1 #Patch Set 2 : Shrink Android textbox size #Patch Set 3 : Tweak more textbox sizes to make center-long-press hit word #Patch Set 4 : Fix type assertion in WebViewTest #
Total comments: 7
Patch Set 5 : Remove std::string in test #
Messages
Total messages: 12 (4 generated)
|