Index: Source/core/editing/InsertParagraphSeparatorCommand.cpp |
diff --git a/Source/core/editing/InsertParagraphSeparatorCommand.cpp b/Source/core/editing/InsertParagraphSeparatorCommand.cpp |
index 769b533e80420d19fb7d16ac5f857bad0e543b31..932b783f1d8cdbe482c6fca8e7473a5e347d7610 100644 |
--- a/Source/core/editing/InsertParagraphSeparatorCommand.cpp |
+++ b/Source/core/editing/InsertParagraphSeparatorCommand.cpp |
@@ -175,7 +175,7 @@ void InsertParagraphSeparatorCommand::doApply() |
|| isTableCell(startBlock.get()) |
|| isHTMLFormElement(*startBlock) |
// 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() && isRenderedTable(canonicalPos.deprecatedNode())) |
+ || (!canonicalPos.isNull() && isRenderedTableElement(canonicalPos.deprecatedNode())) |
|| (!canonicalPos.isNull() && isHTMLHRElement(*canonicalPos.deprecatedNode()))) { |
applyCommandToComposite(InsertLineBreakCommand::create(document())); |
return; |