| Index: third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp b/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp
|
| index 4a6ad4ebe8e99d88f69cefa6660e4c857011ab46..bef69781f5aaa91504d976afe249e4422d3b5b11 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp
|
| @@ -184,7 +184,8 @@ void InsertListCommand::doApply(EditingState* editingState) {
|
| startOfParagraph(visibleEndOfSelection, CanSkipOverEditingBoundary)
|
| .deepEquivalent();
|
|
|
| - Range* currentSelection = firstRangeOf(endingSelection());
|
| + Range* currentSelection =
|
| + createRange(firstEphemeralRangeOf(endingSelection()));
|
| ContainerNode* scopeForStartOfSelection = nullptr;
|
| ContainerNode* scopeForEndOfSelection = nullptr;
|
| // FIXME: This is an inefficient way to keep selection alive because
|
| @@ -296,9 +297,9 @@ void InsertListCommand::doApply(EditingState* editingState) {
|
| return;
|
| }
|
|
|
| - DCHECK(firstRangeOf(endingSelection()));
|
| - doApplyForSingleParagraph(false, listTag, *firstRangeOf(endingSelection()),
|
| - editingState);
|
| + Range* const range = createRange(firstEphemeralRangeOf(endingSelection()));
|
| + DCHECK(range);
|
| + doApplyForSingleParagraph(false, listTag, *range, editingState);
|
| }
|
|
|
| InputEvent::InputType InsertListCommand::inputType() const {
|
|
|