| Index: Source/core/editing/InsertParagraphSeparatorCommand.cpp
|
| diff --git a/Source/core/editing/InsertParagraphSeparatorCommand.cpp b/Source/core/editing/InsertParagraphSeparatorCommand.cpp
|
| index 84f830e69e159cc000f8163e8cdea30e2be0351b..4958bf559f6b932b58e92ec13c36ed673645210a 100644
|
| --- a/Source/core/editing/InsertParagraphSeparatorCommand.cpp
|
| +++ b/Source/core/editing/InsertParagraphSeparatorCommand.cpp
|
| @@ -170,7 +170,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() && canonicalPos.renderer() && canonicalPos.renderer()->isTable())
|
| || (!canonicalPos.isNull() && canonicalPos.deprecatedNode()->hasTagName(hrTag))) {
|
| applyCommandToComposite(InsertLineBreakCommand::create(document()));
|
| return;
|
|
|