Index: Source/core/editing/CompositeEditCommand.cpp |
diff --git a/Source/core/editing/CompositeEditCommand.cpp b/Source/core/editing/CompositeEditCommand.cpp |
index f450f39a50e55eebb6626fb0c77c8c62a4e63225..272492b6d2bbfc7354a4d98928c90d27747ab592 100644 |
--- a/Source/core/editing/CompositeEditCommand.cpp |
+++ b/Source/core/editing/CompositeEditCommand.cpp |
@@ -897,10 +897,7 @@ PassRefPtrWillBeRawPtr<Element> CompositeEditCommand::insertNewDefaultParagraphE |
// it, and return that block. Otherwise return 0. |
PassRefPtrWillBeRawPtr<Element> CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary(const Position& pos) |
{ |
- if (pos.isNull()) |
- return nullptr; |
- |
- document().updateLayoutIgnorePendingStylesheets(); |
+ ASSERT(isEditablePosition(pos, ContentIsEditable, DoNotUpdateStyle)); |
// It's strange that this function is responsible for verifying that pos has not been invalidated |
// by an earlier call to this function. The caller, applyBlockStyle, should do this. |