| Index: third_party/WebKit/Source/core/editing/Editor.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/Editor.cpp b/third_party/WebKit/Source/core/editing/Editor.cpp
|
| index 3ce9536e6f79cd350201cd31130bd3514849f93c..f55d90c5dec045938e4916f3fe4f815c070c854f 100644
|
| --- a/third_party/WebKit/Source/core/editing/Editor.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/Editor.cpp
|
| @@ -1374,8 +1374,8 @@ void Editor::transpose() {
|
| const EphemeralRange range = makeRange(previous, next);
|
| if (range.isNull())
|
| return;
|
| - VisibleSelection newSelection = createVisibleSelection(
|
| - SelectionInDOMTree::Builder().setBaseAndExtent(range).build());
|
| + const SelectionInDOMTree newSelection =
|
| + SelectionInDOMTree::Builder().setBaseAndExtent(range).build();
|
|
|
| // Transpose the two characters.
|
| String text = plainText(range);
|
| @@ -1384,7 +1384,7 @@ void Editor::transpose() {
|
| String transposed = text.right(1) + text.left(1);
|
|
|
| // Select the two characters.
|
| - if (newSelection !=
|
| + if (createVisibleSelection(newSelection) !=
|
| frame().selection().computeVisibleSelectionInDOMTreeDeprecated())
|
| frame().selection().setSelection(newSelection);
|
|
|
|
|