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

Issue 2953743002: Simplify LayoutSelection::CalcSelection() (Closed)

Created:
3 years, 6 months ago by yoichio
Modified:
3 years, 5 months ago
Reviewers:
yosin_UTC9
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Simplify LayoutSelection::CalcSelection() This CL changes - Unify code whether selection is inside TextControl or not - Split block cursor logic. Then CalcSelection does - return FrameSelection.VSinFlat if no block cursor - if block cursor, extending selection with NextPositionOf(kGrapheme); BUG=708453 Review-Url: https://codereview.chromium.org/2953743002 Cr-Commit-Position: refs/heads/master@{#482194} Committed: https://chromium.googlesource.com/chromium/src/+/80471d8d1cbf8b08eaa893832f4d735765881a02

Patch Set 1 #

Total comments: 7

Patch Set 2 : update #

Patch Set 3 : update #

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

Messages

Total messages: 31 (20 generated)
yoichio
Bot failure looks not related this change.
3 years, 6 months ago (2017-06-23 02:04:00 UTC) #7
yosin_UTC9
https://codereview.chromium.org/2953743002/diff/1/third_party/WebKit/Source/core/editing/LayoutSelection.cpp File third_party/WebKit/Source/core/editing/LayoutSelection.cpp (right): https://codereview.chromium.org/2953743002/diff/1/third_party/WebKit/Source/core/editing/LayoutSelection.cpp#newcode117 third_party/WebKit/Source/core/editing/LayoutSelection.cpp:117: const bool paint_block_cursor = Could you move this expression ...
3 years, 6 months ago (2017-06-23 03:53:50 UTC) #9
yoichio
https://codereview.chromium.org/2953743002/diff/1/third_party/WebKit/Source/core/editing/LayoutSelection.cpp File third_party/WebKit/Source/core/editing/LayoutSelection.cpp (right): https://codereview.chromium.org/2953743002/diff/1/third_party/WebKit/Source/core/editing/LayoutSelection.cpp#newcode117 third_party/WebKit/Source/core/editing/LayoutSelection.cpp:117: const bool paint_block_cursor = On 2017/06/23 03:53:50, yosin_UTC9 wrote: ...
3 years, 6 months ago (2017-06-23 04:27:16 UTC) #12
yoichio
On 2017/06/23 04:27:16, yoichio wrote: > https://codereview.chromium.org/2953743002/diff/1/third_party/WebKit/Source/core/editing/LayoutSelection.cpp > File third_party/WebKit/Source/core/editing/LayoutSelection.cpp (right): > > https://codereview.chromium.org/2953743002/diff/1/third_party/WebKit/Source/core/editing/LayoutSelection.cpp#newcode117 > ...
3 years, 6 months ago (2017-06-23 04:29:06 UTC) #13
yosin_UTC9
https://codereview.chromium.org/2953743002/diff/1/third_party/WebKit/Source/core/editing/LayoutSelection.cpp File third_party/WebKit/Source/core/editing/LayoutSelection.cpp (right): https://codereview.chromium.org/2953743002/diff/1/third_party/WebKit/Source/core/editing/LayoutSelection.cpp#newcode117 third_party/WebKit/Source/core/editing/LayoutSelection.cpp:117: const bool paint_block_cursor = On 2017/06/23 at 04:27:15, yoichio ...
3 years, 6 months ago (2017-06-23 04:46:12 UTC) #16
yoichio
https://codereview.chromium.org/2953743002/diff/1/third_party/WebKit/Source/core/editing/LayoutSelection.cpp File third_party/WebKit/Source/core/editing/LayoutSelection.cpp (right): https://codereview.chromium.org/2953743002/diff/1/third_party/WebKit/Source/core/editing/LayoutSelection.cpp#newcode117 third_party/WebKit/Source/core/editing/LayoutSelection.cpp:117: const bool paint_block_cursor = On 2017/06/23 04:46:11, yosin_UTC9 wrote: ...
3 years, 6 months ago (2017-06-23 05:01:01 UTC) #19
yosin_UTC9
lgtm Thanks!
3 years, 6 months ago (2017-06-23 05:17:13 UTC) #20
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/2953743002/40001
3 years, 6 months ago (2017-06-23 07:32:07 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/295238)
3 years, 6 months ago (2017-06-23 07:46:38 UTC) #26
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/2953743002/40001
3 years, 6 months ago (2017-06-26 01:53:51 UTC) #28
commit-bot: I haz the power
3 years, 5 months ago (2017-06-26 04:07:58 UTC) #31
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/80471d8d1cbf8b08eaa893832f4d...

Powered by Google App Engine
This is Rietveld 408576698