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

Issue 2450213002: Utilize EditCommand::setEndingSelection() taking SelectionInDOMTree (Closed)

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

Description

Utilize EditCommand::setEndingSelection() taking SelectionInDOMTree This patch changes call sites of |EditCommand::setEndingSelection()| passing |VisibleSelection| to |SeelctionInDOMTree| to reduce usage of |VisibleSelection| and reduce update layout tree and as a preparation of introducing |SelecitonForUndoStep|, http://crrev.com/2457523004, for farther reduce of update layout calls. BUG=657237 TEST=n/a; no behavior changes Committed: https://crrev.com/e3d2a5b25ef09f4c8458db05080e604efae9c1aa Cr-Commit-Position: refs/heads/master@{#428305}

Patch Set 1 : 2016-10-26T19:03:17 #

Patch Set 2 : 2016-10-27T13:15:57 #

Patch Set 3 : 2016-10-27T14:55:59 #

Patch Set 4 : 2016-10-27T18:27:07 #

Total comments: 5

Patch Set 5 : 2016-10-28T13:23:30 #

Patch Set 6 : 2016-10-28T14:44:14 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -189 lines) Patch
M third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommand.cpp View 1 2 3 4 5 3 chunks +7 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp View 1 chunk +5 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/BreakBlockquoteCommand.cpp View 4 chunks +16 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp View 1 2 3 8 chunks +25 lines, -31 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/CreateLinkCommand.cpp View 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/EditCommand.h View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/EditCommand.cpp View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/commands/InsertLineBreakCommand.cpp View 1 2 3 4 4 chunks +16 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp View 2 chunks +8 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.cpp View 4 chunks +14 lines, -20 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/InsertTextCommand.cpp View 1 2 3 4 4 chunks +15 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp View 2 chunks +10 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp View 1 2 3 6 chunks +12 lines, -14 lines 0 comments Download

Messages

Total messages: 34 (27 generated)
yosin_UTC9
PTAL
4 years, 1 month ago (2016-10-28 01:43:45 UTC) #19
Xiaocheng
https://codereview.chromium.org/2450213002/diff/60001/third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommand.cpp File third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommand.cpp (right): https://codereview.chromium.org/2450213002/diff/60001/third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommand.cpp#newcode88 third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommand.cpp:88: const VisibleSelection newSelection = We can remove |newSelection|, as ...
4 years, 1 month ago (2016-10-28 02:25:26 UTC) #20
yosin_UTC9
PTAL Updated to follow review comments. https://codereview.chromium.org/2450213002/diff/60001/third_party/WebKit/Source/core/editing/commands/InsertLineBreakCommand.cpp File third_party/WebKit/Source/core/editing/commands/InsertLineBreakCommand.cpp (right): https://codereview.chromium.org/2450213002/diff/60001/third_party/WebKit/Source/core/editing/commands/InsertLineBreakCommand.cpp#newcode145 third_party/WebKit/Source/core/editing/commands/InsertLineBreakCommand.cpp:145: document().updateStyleAndLayoutIgnorePendingStylesheets(); On 2016/10/28 ...
4 years, 1 month ago (2016-10-28 06:06:49 UTC) #27
Xiaocheng
lgtm
4 years, 1 month ago (2016-10-28 06:55:17 UTC) #28
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/2450213002/100001
4 years, 1 month ago (2016-10-28 07:15:16 UTC) #31
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 1 month ago (2016-10-28 07:19:56 UTC) #32
commit-bot: I haz the power
4 years, 1 month ago (2016-10-28 07:22:22 UTC) #34
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/e3d2a5b25ef09f4c8458db05080e604efae9c1aa
Cr-Commit-Position: refs/heads/master@{#428305}

Powered by Google App Engine
This is Rietveld 408576698