Index: Source/core/editing/commands/InsertListCommand.cpp |
diff --git a/Source/core/editing/commands/InsertListCommand.cpp b/Source/core/editing/commands/InsertListCommand.cpp |
index 3785932cf0cdd469071a37eb01874c5cbd5c9bb6..4213bd73197309fce3e5777498100d085aa31319 100644 |
--- a/Source/core/editing/commands/InsertListCommand.cpp |
+++ b/Source/core/editing/commands/InsertListCommand.cpp |
@@ -179,7 +179,7 @@ void InsertListCommand::doApply() |
// If endOfSelection is null, then some contents have been deleted from the document. |
// This should never happen and if it did, exit early immediately because we've lost the loop invariant. |
ASSERT(endOfSelection.isNotNull()); |
- if (endOfSelection.isNull() || !endOfSelection.rootEditableElement()) |
+ if (endOfSelection.isNull() || !rootEditableElementOf(endOfSelection)) |
return; |
startOfLastParagraph = startOfParagraph(endOfSelection, CanSkipOverEditingBoundary); |
} |