Index: Source/core/editing/InsertLineBreakCommand.cpp |
diff --git a/Source/core/editing/InsertLineBreakCommand.cpp b/Source/core/editing/InsertLineBreakCommand.cpp |
index 5270238d9484c1824f62e95d00a0d919b2ccc811..4c2699d2afa4afda2807d8f98fdda45bfb38fb21 100644 |
--- a/Source/core/editing/InsertLineBreakCommand.cpp |
+++ b/Source/core/editing/InsertLineBreakCommand.cpp |
@@ -90,7 +90,7 @@ void InsertLineBreakCommand::doApply() |
// FIXME: Need to merge text nodes when inserting just after or before text. |
if (isEndOfParagraph(caret) && !lineBreakExistsAtVisiblePosition(caret)) { |
- bool needExtraLineBreak = !pos.deprecatedNode()->hasTagName(hrTag) && !pos.deprecatedNode()->hasTagName(tableTag); |
+ bool needExtraLineBreak = !isHTMLHRElement(*pos.deprecatedNode()) && !isHTMLTableElement(*pos.deprecatedNode()); |
insertNodeAt(nodeToInsert.get(), pos); |