Index: third_party/WebKit/Source/core/editing/InputMethodController.cpp |
diff --git a/third_party/WebKit/Source/core/editing/InputMethodController.cpp b/third_party/WebKit/Source/core/editing/InputMethodController.cpp |
index 01eaa00c9e91afeec04a76f01c97f5ee661a4128..8e297906799fc69c2f377046ee25c67f27ca41a8 100644 |
--- a/third_party/WebKit/Source/core/editing/InputMethodController.cpp |
+++ b/third_party/WebKit/Source/core/editing/InputMethodController.cpp |
@@ -793,7 +793,11 @@ void InputMethodController::extendSelectionAndDelete(int before, int after) { |
if (before == 0) |
break; |
++before; |
- } while (frame().selection().start() == frame().selection().end() && |
+ } while (frame().selection().start() == |
+ frame() |
+ .selection() |
+ .computeVisibleSelectionInDOMTreeDeprecated() |
+ .end() && |
before <= static_cast<int>(selectionOffsets.start())); |
// TODO(chongz): Find a way to distinguish Forward and Backward. |
Node* target = document().focusedElement(); |