| Index: Source/core/editing/SetSelectionCommand.cpp
|
| diff --git a/Source/core/editing/SetSelectionCommand.cpp b/Source/core/editing/SetSelectionCommand.cpp
|
| index 48c86bf0698306b8239ccc719975b6a436282265..5fa2515ff3a7a1358d8c57683187203f2927f3b1 100644
|
| --- a/Source/core/editing/SetSelectionCommand.cpp
|
| +++ b/Source/core/editing/SetSelectionCommand.cpp
|
| @@ -41,17 +41,14 @@ SetSelectionCommand::SetSelectionCommand(const VisibleSelection& selection, Fram
|
| void SetSelectionCommand::doApply()
|
| {
|
| FrameSelection& selection = document().frame()->selection();
|
| - if (selection.shouldChangeSelection(m_selectionToSet) && m_selectionToSet.isNonOrphanedCaretOrRange()) {
|
| - selection.setSelection(m_selectionToSet, m_options);
|
| - setEndingSelection(m_selectionToSet);
|
| - }
|
| + selection.setSelection(m_selectionToSet, m_options);
|
| + setEndingSelection(m_selectionToSet);
|
| }
|
|
|
| void SetSelectionCommand::doUnapply()
|
| {
|
| FrameSelection& selection = document().frame()->selection();
|
| - if (selection.shouldChangeSelection(startingSelection()) && startingSelection().isNonOrphanedCaretOrRange())
|
| - selection.setSelection(startingSelection(), m_options);
|
| + selection.setSelection(startingSelection(), m_options);
|
| }
|
|
|
| } // namespace WebCore
|
|
|