| Index: Source/core/editing/InsertParagraphSeparatorCommand.cpp
|
| diff --git a/Source/core/editing/InsertParagraphSeparatorCommand.cpp b/Source/core/editing/InsertParagraphSeparatorCommand.cpp
|
| index ddfe1d26d77ea1bd4ae22fd3e991d451e593da23..9ad4234a4bb728f8321eee2790bc2d580f6bb79a 100644
|
| --- a/Source/core/editing/InsertParagraphSeparatorCommand.cpp
|
| +++ b/Source/core/editing/InsertParagraphSeparatorCommand.cpp
|
| @@ -172,7 +172,7 @@ void InsertParagraphSeparatorCommand::doApply()
|
| || isTableCell(startBlock.get())
|
| || startBlock->hasTagName(formTag)
|
| // FIXME: If the node is hidden, we don't have a canonical position so we will do the wrong thing for tables and <hr>. https://bugs.webkit.org/show_bug.cgi?id=40342
|
| - || (!canonicalPos.isNull() && canonicalPos.deprecatedNode()->renderer() && canonicalPos.deprecatedNode()->renderer()->isTable())
|
| + || (!canonicalPos.isNull() && isRenderedTable(canonicalPos.deprecatedNode()))
|
| || (!canonicalPos.isNull() && canonicalPos.deprecatedNode()->hasTagName(hrTag))) {
|
| applyCommandToComposite(InsertLineBreakCommand::create(document()));
|
| return;
|
|
|