| Index: Source/core/editing/commands/FormatBlockCommand.cpp
|
| diff --git a/Source/core/editing/commands/FormatBlockCommand.cpp b/Source/core/editing/commands/FormatBlockCommand.cpp
|
| index 4b59e20b948b9844f113f854bcc0e2258feb46f2..d06e0da9ab9e7ee4e66474573e4b76dd56b93fcd 100644
|
| --- a/Source/core/editing/commands/FormatBlockCommand.cpp
|
| +++ b/Source/core/editing/commands/FormatBlockCommand.cpp
|
| @@ -166,7 +166,7 @@ Node* enclosingBlockToSplitTreeTo(Node* startNode)
|
| return lastBlock;
|
| if (isTableCell(n) || isHTMLBodyElement(*n) || !n->parentNode() || !n->parentNode()->hasEditableStyle() || isElementForFormatBlock(n))
|
| return n;
|
| - if (isBlock(n))
|
| + if (isEnclosingBlock(n))
|
| lastBlock = n;
|
| if (isHTMLListElement(n))
|
| return n->parentNode()->hasEditableStyle() ? n->parentNode() : n;
|
|
|