DescriptionAvoid unused Computations in SelectionController::selectClosestWordFromHitTestResult
Currently if style has user-select none for a node,
selectClosestWordFromHitTestResult() does all the calculations for VisibleSelection
but then returns as false making all VisibleSelection calculation meaningless.
This CL avoids the unused computations by checking for
user-select state before calculating VisibleSelection.
BUG=701657
Review-Url: https://codereview.chromium.org/2757863003
Cr-Commit-Position: refs/heads/master@{#458317}
Committed: https://chromium.googlesource.com/chromium/src/+/4b59469154ec17254ae526c9327931ecf0f51b9b
Patch Set 1 #
Messages
Total messages: 14 (7 generated)
|