| Index: Source/core/editing/FormatBlockCommand.cpp
|
| diff --git a/Source/core/editing/FormatBlockCommand.cpp b/Source/core/editing/FormatBlockCommand.cpp
|
| index ac397a9ebf0ad8855764e157a02f368a0dbdc281..2c2d26aa05d04c32fd3eac3ec8507bc8652b0c11 100644
|
| --- a/Source/core/editing/FormatBlockCommand.cpp
|
| +++ b/Source/core/editing/FormatBlockCommand.cpp
|
| @@ -156,7 +156,7 @@ Node* enclosingBlockToSplitTreeTo(Node* startNode)
|
| for (Node* n = startNode; n; n = n->parentNode()) {
|
| if (!n->rendererIsEditable())
|
| return lastBlock;
|
| - if (isTableCell(n) || n->hasTagName(bodyTag) || !n->parentNode() || !n->parentNode()->rendererIsEditable() || isElementForFormatBlock(n))
|
| + if (isTableCell(n) || isHTMLBodyElement(*n) || !n->parentNode() || !n->parentNode()->rendererIsEditable() || isElementForFormatBlock(n))
|
| return n;
|
| if (isBlock(n))
|
| lastBlock = n;
|
|
|