| Index: Source/core/editing/TextInsertionBaseCommand.cpp
|
| diff --git a/Source/core/editing/TextInsertionBaseCommand.cpp b/Source/core/editing/TextInsertionBaseCommand.cpp
|
| index 690f71fbed7c35c7813b0f6574afe23d56fa502d..8c7c5b268b3e26e328e1e880695992e36ab2432d 100644
|
| --- a/Source/core/editing/TextInsertionBaseCommand.cpp
|
| +++ b/Source/core/editing/TextInsertionBaseCommand.cpp
|
| @@ -42,7 +42,7 @@ TextInsertionBaseCommand::TextInsertionBaseCommand(Document& document)
|
|
|
| void TextInsertionBaseCommand::applyTextInsertionCommand(LocalFrame* frame, PassRefPtrWillBeRawPtr<TextInsertionBaseCommand> command, const VisibleSelection& selectionForInsertion, const VisibleSelection& endingSelection)
|
| {
|
| - bool changeSelection = selectionForInsertion != endingSelection;
|
| + bool changeSelection = !VisibleSelection::InDOMTree::equalSelections(selectionForInsertion, endingSelection);
|
| if (changeSelection) {
|
| command->setStartingSelection(selectionForInsertion);
|
| command->setEndingSelection(selectionForInsertion);
|
|
|