| Index: Source/core/editing/InsertListCommand.cpp
|
| diff --git a/Source/core/editing/InsertListCommand.cpp b/Source/core/editing/InsertListCommand.cpp
|
| index 15ea47e3d99d2463f155f9cea796339351bc8784..36ccbcd839cd8192cd6b4efd7055fa2a7edbe18a 100644
|
| --- a/Source/core/editing/InsertListCommand.cpp
|
| +++ b/Source/core/editing/InsertListCommand.cpp
|
| @@ -120,8 +120,11 @@ void InsertListCommand::doApply()
|
| // FIXME: We paint the gap before some paragraphs that are indented with left
|
| // margin/padding, but not others. We should make the gap painting more consistent and
|
| // then use a left margin/padding rule here.
|
| - if (visibleEnd != visibleStart && isStartOfParagraph(visibleEnd, CanSkipOverEditingBoundary))
|
| + if (visibleEnd != visibleStart && isStartOfParagraph(visibleEnd, CanSkipOverEditingBoundary)) {
|
| setEndingSelection(VisibleSelection(visibleStart, visibleEnd.previous(CannotCrossEditingBoundary), endingSelection().isDirectional()));
|
| + if (!endingSelection().rootEditableElement())
|
| + return;
|
| + }
|
|
|
| const QualifiedName& listTag = (m_type == OrderedList) ? olTag : ulTag;
|
| if (endingSelection().isRange()) {
|
|
|