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

Issue 1089283002: Making VisibleSelection operator== take base and extent into account. (Closed)

Created:
5 years, 8 months ago by mfomitchev
Modified:
5 years, 8 months ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Making VisibleSelection operator== take base and extent into account. If the user long presses on a word to select, a selection is created with base and extent at the long press point (and start/end at the start/end of the word). If the user then starts dragging the handle, in the beginning of the drag the selection is updated to have base/extent at start/end positions. However unless == takes base and extent into account, the update doesn't take place, which causes problems down the line. BUG=NONE Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=193950

Patch Set 1 #

Total comments: 3

Patch Set 2 : Removed unneeded check. #

Patch Set 3 : Adding None check. #

Total comments: 1

Patch Set 4 : Need to check affinity() and isDirectional() even if selection is none. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -2 lines) Patch
M Source/core/editing/VisibleSelection.h View 1 2 3 1 chunk +8 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (7 generated)
mfomitchev
5 years, 8 months ago (2015-04-16 03:20:41 UTC) #2
yosin_UTC9
LGTM I feel this is natural for operator==(). If we really need to compare start/end, ...
5 years, 8 months ago (2015-04-16 03:34:08 UTC) #3
yosin_UTC9
On 2015/04/16 03:34:08, Yosi_UTC9 wrote: > LGTM > > I feel this is natural for ...
5 years, 8 months ago (2015-04-16 03:36:33 UTC) #4
yosin_UTC9
https://codereview.chromium.org/1089283002/diff/1/Source/core/editing/VisibleSelection.h File Source/core/editing/VisibleSelection.h (right): https://codereview.chromium.org/1089283002/diff/1/Source/core/editing/VisibleSelection.h#newcode185 Source/core/editing/VisibleSelection.h:185: return a.start() == b.start() && a.end() == b.end() && ...
5 years, 8 months ago (2015-04-16 04:59:04 UTC) #5
mfomitchev
rbyers: can you PTAL:? https://codereview.chromium.org/1089283002/diff/1/Source/core/editing/VisibleSelection.h File Source/core/editing/VisibleSelection.h (right): https://codereview.chromium.org/1089283002/diff/1/Source/core/editing/VisibleSelection.h#newcode185 Source/core/editing/VisibleSelection.h:185: return a.start() == b.start() && ...
5 years, 8 months ago (2015-04-16 18:11:32 UTC) #6
Rick Byers
Rubber-stamp LGTM (Yosi is the expert).
5 years, 8 months ago (2015-04-16 18:48:57 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1089283002/40001
5 years, 8 months ago (2015-04-16 19:03:42 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/52167)
5 years, 8 months ago (2015-04-17 03:13:20 UTC) #13
yosin_UTC9
https://codereview.chromium.org/1089283002/diff/40001/Source/core/editing/VisibleSelection.h File Source/core/editing/VisibleSelection.h (right): https://codereview.chromium.org/1089283002/diff/40001/Source/core/editing/VisibleSelection.h#newcode186 Source/core/editing/VisibleSelection.h:186: return b.isNone(); We need to check affinity() and isDirectional() ...
5 years, 8 months ago (2015-04-17 04:15:59 UTC) #14
mfomitchev
On 2015/04/17 04:15:59, Yosi_UTC9 wrote: > https://codereview.chromium.org/1089283002/diff/40001/Source/core/editing/VisibleSelection.h > File Source/core/editing/VisibleSelection.h (right): > > https://codereview.chromium.org/1089283002/diff/40001/Source/core/editing/VisibleSelection.h#newcode186 > ...
5 years, 8 months ago (2015-04-17 14:07:17 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1089283002/60001
5 years, 8 months ago (2015-04-17 14:07:44 UTC) #18
commit-bot: I haz the power
5 years, 8 months ago (2015-04-17 15:48:13 UTC) #19
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=193950

Powered by Google App Engine
This is Rietveld 408576698