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

Issue 2451093002: Get rid of EditCommand::setEndingSelection() taking one VisiblePosition (Closed)

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

Description

Get rid of EditCommand::setEndingSelection() taking one VisiblePosition This patch gets rid of |EditCommand::setEndingSelection()| taking one |VisiblePosition| to reduce usage of |VisiblePosition| for improving code health. BUG=657237 TEST=n/a; no behavior changes Committed: https://crrev.com/756e72cd34c840d8d2f22702b0c65984efddaca6 Cr-Commit-Position: refs/heads/master@{#427646}

Patch Set 1 : 2016-10-26T14:32:48 #

Patch Set 2 : 2016-10-26T15:12:29 #

Total comments: 2

Patch Set 3 : 2016-10-26T16:39:39 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -30 lines) Patch
M third_party/WebKit/Source/core/editing/commands/EditCommand.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/commands/EditCommand.cpp View 1 chunk +0 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/commands/InsertLineBreakCommand.cpp View 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp View 3 chunks +10 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp View 1 2 5 chunks +25 lines, -10 lines 0 comments Download

Messages

Total messages: 18 (11 generated)
yosin_UTC9
PTAL Intentionally not to check null VisiblePosition to catch a such case by ClusterFuzz.
4 years, 1 month ago (2016-10-26 07:27:41 UTC) #7
Xiaocheng
One of the removed removed layout update calls still seems necessary. https://codereview.chromium.org/2451093002/diff/20001/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp File third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp (left): ...
4 years, 1 month ago (2016-10-26 07:33:23 UTC) #8
yosin_UTC9
PTAL PS#3 is as same as PS#1. I over killed update layout call in PS#2. ...
4 years, 1 month ago (2016-10-26 07:41:02 UTC) #11
Xiaocheng
lgtm
4 years, 1 month ago (2016-10-26 08:04:26 UTC) #12
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/2451093002/40001
4 years, 1 month ago (2016-10-26 08:06:41 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-10-26 09:09:25 UTC) #16
commit-bot: I haz the power
4 years, 1 month ago (2016-10-26 09:12:14 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/756e72cd34c840d8d2f22702b0c65984efddaca6
Cr-Commit-Position: refs/heads/master@{#427646}

Powered by Google App Engine
This is Rietveld 408576698