| 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..e0addcd8dfe251a68edb598967d706f96bbfed3f 100644
|
| --- a/third_party/WebKit/Source/core/editing/InputMethodController.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/InputMethodController.cpp
|
| @@ -821,11 +821,13 @@ 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));
|
| + Node* target = document().focusedElement();
|
| + if (target) {
|
| + dispatchBeforeInputEditorCommand(
|
| + target, InputEvent::InputType::DeleteContentBackward,
|
| + targetRangesForInputEvent(*target));
|
| + }
|
| TypingCommand::deleteSelection(document());
|
| }
|
|
|
|
|