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

Issue 2451613003: Get rid of createVisibleSelection() taking two Position (Closed)

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

Description

Get rid of createVisibleSelection() taking two Position This patch gets rid of flat tree version of |createVisibleSelection()| taking two |Position| by replacing with |SelectionInDOMTree| version to reduce number of overloads for improving code health. BUG=657237 TEST=n/a; no behavior changes Committed: https://crrev.com/02a3e9549a9be351eb995a6e69ef949d60674900 Cr-Commit-Position: refs/heads/master@{#427633}

Patch Set 1 : 2016-10-25T16:58:36 #

Patch Set 2 : 2016-10-25T18:25:46 #

Patch Set 3 : 2016-10-26T11:29:45 #

Total comments: 6

Patch Set 4 : 2016-10-26T15:09:55 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -101 lines) Patch
M third_party/WebKit/Source/core/editing/DOMSelection.cpp View 1 2 3 chunks +25 lines, -27 lines 0 comments Download
M third_party/WebKit/Source/core/editing/FrameSelection.cpp View 1 2 1 chunk +7 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/editing/GranularityStrategyTest.cpp View 11 chunks +32 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/editing/SelectionAdjuster.cpp View 2 chunks +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/SelectionAdjusterTest.cpp View 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleSelection.h View 1 chunk +0 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleSelection.cpp View 1 chunk +0 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleSelectionTest.cpp View 3 chunks +15 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp View 1 2 1 chunk +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp View 3 chunks +10 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/CreateLinkCommand.cpp View 1 chunk +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/InsertListCommandTest.cpp View 1 chunk +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp View 1 2 2 chunks +8 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp View 1 2 3 2 chunks +11 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/page/DragController.cpp View 1 2 3 1 chunk +3 lines, -5 lines 0 comments Download

Messages

Total messages: 31 (21 generated)
yosin_UTC9
PTAL Not only core/editing changes but also: - core/page/DragController.cpp This is the last patch for ...
4 years, 1 month ago (2016-10-25 09:33:00 UTC) #10
Xiaocheng
Please fix layout test failure...
4 years, 1 month ago (2016-10-25 13:20:56 UTC) #13
yosin_UTC9
PTAL Layout test failure is caused by SVG USE element which modifies DOM tree during ...
4 years, 1 month ago (2016-10-26 04:18:02 UTC) #16
Xiaocheng
https://codereview.chromium.org/2451613003/diff/40001/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp File third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp (right): https://codereview.chromium.org/2451613003/diff/40001/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp#newcode1603 third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp:1603: SelectionInDOMTree::Builder().collapse(start).extend(end).build())); Do we have non-null start and end here? ...
4 years, 1 month ago (2016-10-26 05:49:18 UTC) #19
yosin_UTC9
PTAL Update as suggested. https://codereview.chromium.org/2451613003/diff/40001/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp File third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp (right): https://codereview.chromium.org/2451613003/diff/40001/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp#newcode1603 third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp:1603: SelectionInDOMTree::Builder().collapse(start).extend(end).build())); On 2016/10/26 at 05:49:18, ...
4 years, 1 month ago (2016-10-26 07:43:07 UTC) #24
Xiaocheng
lgtm
4 years, 1 month ago (2016-10-26 08:02:49 UTC) #25
tkent
lgtm
4 years, 1 month ago (2016-10-26 08:09:16 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/2451613003/60001
4 years, 1 month ago (2016-10-26 08:13:50 UTC) #28
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-10-26 08:18:03 UTC) #29
commit-bot: I haz the power
4 years, 1 month ago (2016-10-26 08:20:08 UTC) #31
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/02a3e9549a9be351eb995a6e69ef949d60674900
Cr-Commit-Position: refs/heads/master@{#427633}

Powered by Google App Engine
This is Rietveld 408576698