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

Issue 1753703005: Simplify TypingCommand::insertText (Closed)

Created:
4 years, 9 months ago by yoichio
Modified:
4 years, 9 months ago
Reviewers:
yosin_UTC9
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Simplify TypingCommand::insertText TypingCommand::insertText needs VisibleSelection to insert. It is |selectionForInsertion|. TypingCommand::insertText creates TypingCommand, or |command| and: command->setEndingSelection(selectionForInsertion); command->Apply(); command->setEndingSelection(frameSelection->selection()); However, TypingCommand refers frameselection its inside. Thus just insert |selectionForInsertion| to frameSelection before TypingCommand::insertText. BUG= Committed: https://crrev.com/48f364c944440645164842a30354541792a6ef19 Cr-Commit-Position: refs/heads/master@{#378984}

Patch Set 1 : update #

Total comments: 1

Patch Set 2 : update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -36 lines) Patch
M third_party/WebKit/Source/core/editing/Editor.cpp View 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/TextInsertionBaseCommand.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/commands/TextInsertionBaseCommand.cpp View 1 chunk +0 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/TypingCommand.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp View 1 3 chunks +8 lines, -17 lines 0 comments Download

Messages

Total messages: 15 (8 generated)
yoichio
4 years, 9 months ago (2016-03-03 05:03:41 UTC) #5
yosin_UTC9
https://codereview.chromium.org/1753703005/diff/40001/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp File third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp (right): https://codereview.chromium.org/1753703005/diff/40001/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp#newcode178 third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp:178: String newText = dispatchBeforeTextInsertedEvent(text, currentSelection, composition == TextCompositionUpdate); |compositionType| ...
4 years, 9 months ago (2016-03-03 06:14:20 UTC) #6
yoichio
On 2016/03/03 at 06:14:20, yosin wrote: > https://codereview.chromium.org/1753703005/diff/40001/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp > File third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp (right): > > https://codereview.chromium.org/1753703005/diff/40001/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp#newcode178 ...
4 years, 9 months ago (2016-03-03 07:13:08 UTC) #9
yosin_UTC9
lgtm
4 years, 9 months ago (2016-03-03 07:36:53 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1753703005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1753703005/60001
4 years, 9 months ago (2016-03-03 07:37:06 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:60001)
4 years, 9 months ago (2016-03-03 08:45:14 UTC) #13
commit-bot: I haz the power
4 years, 9 months ago (2016-03-03 08:46:31 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/48f364c944440645164842a30354541792a6ef19
Cr-Commit-Position: refs/heads/master@{#378984}

Powered by Google App Engine
This is Rietveld 408576698