Index: third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.cpp |
diff --git a/third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.cpp b/third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.cpp |
index bba05a1b9e7d6bab63504fc4a32456013547171f..8b260fa2eaa087cd44d9c52cc64628b4ab487e9a 100644 |
--- a/third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.cpp |
+++ b/third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.cpp |
@@ -431,7 +431,7 @@ void InsertParagraphSeparatorCommand::doApply(EditingState* editingState) |
if (editingState->isAborted()) |
return; |
- document().updateLayoutIgnorePendingStylesheets(); |
+ document().updateStyleAndLayoutIgnorePendingStylesheets(); |
// If the paragraph separator was inserted at the end of a paragraph, an empty line must be |
// created. All of the nodes, starting at visiblePos, are about to be added to the new paragraph |
@@ -468,7 +468,7 @@ void InsertParagraphSeparatorCommand::doApply(EditingState* editingState) |
// Handle whitespace that occurs after the split |
if (positionAfterSplit.isNotNull()) { |
- document().updateLayoutIgnorePendingStylesheets(); |
+ document().updateStyleAndLayoutIgnorePendingStylesheets(); |
// TODO(yosin) |isRenderedCharacter()| should be removed, and we should |
// use |VisiblePosition::characterAfter()|. |
if (!isRenderedCharacter(positionAfterSplit)) { |