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

Issue 2465803002: Get rid of VisibleSelection::expandUsingGranularity() (Closed)

Created:
4 years, 1 month ago by yosin_UTC9
Modified:
4 years, 1 month ago
Reviewers:
tkent, yoichio, Xiaocheng
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Get rid of VisibleSelection::expandUsingGranularity() This patch gets rid of |VisibleSelection::expandUsingGranularity()| by using |createVisibleSelection()| as a preparation of making |VisibleSelection| immutable for improving code health. This patch also change |VisibleSelection| constructor to call |validate()| with passed granularity rather than passing character granularity. BUG=660320 TEST=n/a; no behavior changes Committed: https://crrev.com/4af4fd436f8224291702adcd453c840bb2af163a Cr-Commit-Position: refs/heads/master@{#428954}

Patch Set 1 : 2016-10-31T15:09:59 #

Patch Set 2 : 2016-10-31T16:03:04 #

Patch Set 3 : 2016-10-31T17:16:07 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -52 lines) Patch
M third_party/WebKit/Source/core/editing/FrameSelection.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/SelectionController.cpp View 4 chunks +26 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleSelection.h View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleSelection.cpp View 2 chunks +1 line, -9 lines 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleSelectionTest.cpp View 1 13 chunks +47 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp View 1 chunk +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/mac/WebSubstringUtil.mm View 1 2 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 23 (17 generated)
yosin_UTC9
PTAL Not only "core/editing" but also "Source/web/mac/WebSubstringUtil.mm"
4 years, 1 month ago (2016-10-31 10:41:55 UTC) #14
Xiaocheng
lgtm
4 years, 1 month ago (2016-11-01 01:59:41 UTC) #17
tkent
lgtm
4 years, 1 month ago (2016-11-01 02:13:27 UTC) #18
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/2465803002/40001
4 years, 1 month ago (2016-11-01 05:39:47 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-01 07:12:18 UTC) #21
commit-bot: I haz the power
4 years, 1 month ago (2016-11-01 07:16:06 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4af4fd436f8224291702adcd453c840bb2af163a
Cr-Commit-Position: refs/heads/master@{#428954}

Powered by Google App Engine
This is Rietveld 408576698