| 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 dd5e4e66636284921fc638683c840c8320d37608..142838fa1fef075bc9d426ebcb37566a6b6d26d3 100644
|
| --- a/third_party/WebKit/Source/core/editing/InputMethodController.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/InputMethodController.cpp
|
| @@ -821,11 +821,10 @@ void InputMethodController::extendSelectionAndDelete(int before, int after) {
|
| ++before;
|
| } while (frame().selection().start() == frame().selection().end() &&
|
| before <= static_cast<int>(selectionOffsets.start()));
|
| - Range* const range = firstRangeOf(frame().selection().selection());
|
| // TODO(chongz): Find a way to distinguish Forward and Backward.
|
| - dispatchBeforeInputEditorCommand(document().focusedElement(),
|
| - InputEvent::InputType::DeleteContentBackward,
|
| - new RangeVector(1, range));
|
| + dispatchBeforeInputEditorCommand(
|
| + document().focusedElement(), InputEvent::InputType::DeleteContentBackward,
|
| + targetRangesForInputEvent(document().focusedElement()));
|
| TypingCommand::deleteSelection(document());
|
| }
|
|
|
|
|