| 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 23a25f842ba74b45c22a1b87a3b23338ca128fbd..51fda8b19e789315f7df686305dfce1ea8b34161 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp
|
| @@ -363,7 +363,8 @@ bool InsertListCommand::doApplyForSingleParagraph(
|
|
|
| // If the entire list is selected, then convert the whole list.
|
| if (switchListType &&
|
| - isNodeVisiblyContainedWithin(*listElement, currentSelection)) {
|
| + isNodeVisiblyContainedWithin(*listElement,
|
| + EphemeralRange(¤tSelection))) {
|
| bool rangeStartIsInList =
|
| visiblePositionBeforeNode(*listElement).deepEquivalent() ==
|
| createVisiblePosition(currentSelection.startPosition())
|
|
|