| Index: Source/core/editing/commands/InsertListCommand.cpp
|
| diff --git a/Source/core/editing/commands/InsertListCommand.cpp b/Source/core/editing/commands/InsertListCommand.cpp
|
| index 6bdfebbca519c3107222fe8ca78fdea1abf3a7d3..74a0b91109d4a6c557bc77488227df08528b195f 100644
|
| --- a/Source/core/editing/commands/InsertListCommand.cpp
|
| +++ b/Source/core/editing/commands/InsertListCommand.cpp
|
| @@ -146,7 +146,7 @@ void InsertListCommand::doApply()
|
| VisiblePosition endOfSelection = selection.visibleEnd();
|
| VisiblePosition startOfLastParagraph = startOfParagraph(endOfSelection, CanSkipOverEditingBoundary);
|
|
|
| - RefPtrWillBeRawPtr<Range> currentSelection = endingSelection().firstRange();
|
| + RefPtrWillBeRawPtr<Range> currentSelection = firstRangeOf(endingSelection());
|
| RefPtrWillBeRawPtr<ContainerNode> scopeForStartOfSelection = nullptr;
|
| RefPtrWillBeRawPtr<ContainerNode> scopeForEndOfSelection = nullptr;
|
| // FIXME: This is an inefficient way to keep selection alive because
|
| @@ -204,8 +204,8 @@ void InsertListCommand::doApply()
|
| return;
|
| }
|
|
|
| - ASSERT(endingSelection().firstRange());
|
| - doApplyForSingleParagraph(false, listTag, *endingSelection().firstRange());
|
| + ASSERT(firstRangeOf(endingSelection()));
|
| + doApplyForSingleParagraph(false, listTag, *firstRangeOf(endingSelection()));
|
| }
|
|
|
| bool InsertListCommand::doApplyForSingleParagraph(bool forceCreateList, const HTMLQualifiedName& listTag, Range& currentSelection)
|
|
|