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

Issue 2441573002: Move setNonDirectionalSelectionIfNeeded() to SelectionController from FrameSelection (Closed)

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

Description

Move setNonDirectionalSelectionIfNeeded() to SelectionController from FrameSelection This patch moves |setNonDirectionalSelectionIfNeeded()| to |SelectionController| from |FrameSelection| since it is used only in |SelectionController| to simplify |FrameSelection| for improving code health. This patch also gets rid of |originalBase()| which had been used in |setNonDirectionalSelectionIfNeeded()|, but it has never been used. BUG=n/a TEST=n/a; no behavior changes Committed: https://crrev.com/82db1ff7a020d127b961d81e4baa60bbfd5baf03 Cr-Commit-Position: refs/heads/master@{#427032}

Patch Set 1 : 2016-10-20T18:42:15 #

Patch Set 2 : 2016-10-21T11:31:27 #

Patch Set 3 : 2016-10-21T13:13:56 #

Patch Set 4 : 2016-10-21T13:33:51 #

Patch Set 5 : 2016-10-21T14:42:31 #

Patch Set 6 : 2016-10-21T15:43:37 #

Total comments: 8

Patch Set 7 : 2016-10-24T15:46:27 #

Total comments: 2

Patch Set 8 : 2016-10-24T17:02:54 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -31 lines) Patch
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/FrameSelection.h View 1 4 chunks +1 line, -15 lines 0 comments Download
M third_party/WebKit/Source/core/editing/FrameSelection.cpp View 1 6 chunks +10 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp View 1 2 3 4 chunks +38 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/SelectionController.h View 1 2 3 4 5 6 7 4 chunks +18 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/SelectionController.cpp View 1 2 3 4 5 4 chunks +14 lines, -4 lines 0 comments Download

Messages

Total messages: 64 (54 generated)
yosin_UTC9
PTAL
4 years, 2 months ago (2016-10-21 08:17:35 UTC) #41
Xiaocheng
I'm mostly OK with the path. Just a few minor revisions needed. https://codereview.chromium.org/2441573002/diff/200001/third_party/WebKit/Source/core/editing/FrameSelection.cpp File third_party/WebKit/Source/core/editing/FrameSelection.cpp ...
4 years, 2 months ago (2016-10-24 03:53:11 UTC) #44
yosin_UTC9
PTAL - Move SelectionController::documentDettached() call to Document - Update comments https://codereview.chromium.org/2441573002/diff/200001/third_party/WebKit/Source/core/editing/FrameSelection.cpp File third_party/WebKit/Source/core/editing/FrameSelection.cpp (right): https://codereview.chromium.org/2441573002/diff/200001/third_party/WebKit/Source/core/editing/FrameSelection.cpp#newcode828 ...
4 years, 2 months ago (2016-10-24 07:12:13 UTC) #49
Xiaocheng
lgtm
4 years, 2 months ago (2016-10-24 07:21:18 UTC) #50
tkent
https://codereview.chromium.org/2441573002/diff/220001/third_party/WebKit/Source/core/editing/SelectionController.h File third_party/WebKit/Source/core/editing/SelectionController.h (right): https://codereview.chromium.org/2441573002/diff/220001/third_party/WebKit/Source/core/editing/SelectionController.h#newcode48 third_party/WebKit/Source/core/editing/SelectionController.h:48: DECLARE_VIRTUAL_TRACE(); Why do you make it virtual?
4 years, 2 months ago (2016-10-24 07:40:59 UTC) #51
yosin_UTC9
PTAL Use DEFINE_TRACE() in FrameSelection instead of DEFINE_VIRTUAL_TRACE() https://codereview.chromium.org/2441573002/diff/220001/third_party/WebKit/Source/core/editing/SelectionController.h File third_party/WebKit/Source/core/editing/SelectionController.h (right): https://codereview.chromium.org/2441573002/diff/220001/third_party/WebKit/Source/core/editing/SelectionController.h#newcode48 third_party/WebKit/Source/core/editing/SelectionController.h:48: DECLARE_VIRTUAL_TRACE(); ...
4 years, 2 months ago (2016-10-24 08:18:03 UTC) #56
tkent
lgtm
4 years, 2 months ago (2016-10-24 08:20:11 UTC) #57
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/2441573002/240001
4 years, 2 months ago (2016-10-24 08:21:40 UTC) #61
commit-bot: I haz the power
Committed patchset #8 (id:240001)
4 years, 2 months ago (2016-10-24 09:37:51 UTC) #62
commit-bot: I haz the power
4 years, 2 months ago (2016-10-24 09:52:31 UTC) #64
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/82db1ff7a020d127b961d81e4baa60bbfd5baf03
Cr-Commit-Position: refs/heads/master@{#427032}

Powered by Google App Engine
This is Rietveld 408576698