Index: Source/core/editing/TypingCommand.cpp |
diff --git a/Source/core/editing/TypingCommand.cpp b/Source/core/editing/TypingCommand.cpp |
index 4ad36ee8040a438a9337cac9b0d054cd00cb5c22..694404ee9587a537efe5578f3c221ab9b302131c 100644 |
--- a/Source/core/editing/TypingCommand.cpp |
+++ b/Source/core/editing/TypingCommand.cpp |
@@ -386,7 +386,7 @@ void TypingCommand::insertParagraphSeparatorInQuotedContent() |
bool TypingCommand::makeEditableRootEmpty() |
{ |
Element* root = endingSelection().rootEditableElement(); |
- if (!root || !root->firstChild()) |
+ if (!root || !root->hasChildren()) |
return false; |
if (root->firstChild() == root->lastChild()) { |