Chromium Code Reviews
DescriptionSimplify 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 #
Messages
Total messages: 15 (8 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||