| 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 89a260439e80fbb2b1df30b560793b530d1fb6f8..3fa03783bfb1a12662336748aaede4e8c07cb536 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp
|
| @@ -141,7 +141,7 @@ void InsertListCommand::doApply(EditingState* editingState)
|
| // margin/padding, but not others. We should make the gap painting more consistent and
|
| // then use a left margin/padding rule here.
|
| if (visibleEnd.deepEquivalent() != visibleStart.deepEquivalent() && isStartOfParagraphDeprecated(visibleEnd, CanSkipOverEditingBoundary)) {
|
| - setEndingSelection(VisibleSelection(visibleStart, previousPositionOf(visibleEnd, CannotCrossEditingBoundary), endingSelection().isDirectional()));
|
| + setEndingSelection(createVisibleSelectionDeprecated(visibleStart, previousPositionOf(visibleEnd, CannotCrossEditingBoundary), endingSelection().isDirectional()));
|
| if (!endingSelection().rootEditableElement())
|
| return;
|
| }
|
| @@ -222,7 +222,7 @@ void InsertListCommand::doApply(EditingState* editingState)
|
| if (startOfSelection.isNull())
|
| return;
|
| }
|
| - setEndingSelection(VisibleSelection(startOfSelection, endOfSelection, endingSelection().isDirectional()));
|
| + setEndingSelection(createVisibleSelectionDeprecated(startOfSelection, endOfSelection, endingSelection().isDirectional()));
|
| return;
|
| }
|
|
|
|
|