Index: Source/core/editing/commands/InsertListCommand.cpp |
diff --git a/Source/core/editing/commands/InsertListCommand.cpp b/Source/core/editing/commands/InsertListCommand.cpp |
index 74a0b91109d4a6c557bc77488227df08528b195f..65286dd52140b6883d2b38cc67cf99c519275415 100644 |
--- a/Source/core/editing/commands/InsertListCommand.cpp |
+++ b/Source/core/editing/commands/InsertListCommand.cpp |
@@ -381,7 +381,7 @@ PassRefPtrWillBeRawPtr<HTMLElement> InsertListCommand::listifyParagraph(const Vi |
listElement = createHTMLElement(document(), listTag); |
appendNode(listItemElement, listElement); |
- if (start.deepEquivalent() == end.deepEquivalent() && isBlock(start.deepEquivalent().anchorNode())) { |
+ if (start.deepEquivalent() == end.deepEquivalent() && isEnclosingBlock(start.deepEquivalent().anchorNode())) { |
// Inserting the list into an empty paragraph that isn't held open |
// by a br or a '\n', will invalidate start and end. Insert |
// a placeholder and then recompute start and end. |