Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(388)

Issue 2757863003: Avoid unused Computations in SelectionController::selectClosestWordFromHitTestResult (Closed)

Created:
3 years, 9 months ago by tanvir
Modified:
3 years, 9 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M third_party/WebKit/Source/core/editing/SelectionController.cpp View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 14 (7 generated)
Srirama
Peer review looks good to me
3 years, 9 months ago (2017-03-17 12:36:46 UTC) #3
tanvir
PTAL!! With current CL, during Success case when user-select is NOT none, layoutObject()->isSelectable() will be ...
3 years, 9 months ago (2017-03-17 13:16:51 UTC) #6
Xiaocheng
lgtm On 2017/03/17 at 13:16:51, tanvir.rizvi wrote: > PTAL!! > > With current CL, during ...
3 years, 9 months ago (2017-03-17 19:03:14 UTC) #7
yosin_UTC9
C++ code change seems to be good. Could you add layout test to verify this ...
3 years, 9 months ago (2017-03-21 03:28:10 UTC) #8
yosin_UTC9
lgtm Sorry for confusion. user-select:none is checked in updateSelectionForMouseDownDispatchingSelectStart() which is called at the end ...
3 years, 9 months ago (2017-03-21 03:36:39 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2757863003/1
3 years, 9 months ago (2017-03-21 03:37:07 UTC) #11
commit-bot: I haz the power
3 years, 9 months ago (2017-03-21 05:14:50 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/4b59469154ec17254ae526c93279...

Powered by Google App Engine
This is Rietveld 408576698