Index: third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp |
diff --git a/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp b/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp |
index a361cba58c125d05d3af5b9eb1a803a0e67f4aa6..e114c9e0509a3db26290a4db01f7e1c69da6571d 100644 |
--- a/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp |
+++ b/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp |
@@ -289,7 +289,7 @@ HTMLElement* ReplacementFragment::insertFragmentForTestRendering(Element* rootEd |
holder->appendChild(m_fragment); |
rootEditableElement->appendChild(holder); |
- m_document->updateLayoutIgnorePendingStylesheets(); |
+ m_document->updateStyleAndLayoutIgnorePendingStylesheets(); |
return holder; |
} |
@@ -736,7 +736,7 @@ static inline bool nodeHasVisibleLayoutText(Text& text) |
void ReplaceSelectionCommand::removeUnrenderedTextNodesAtEnds(InsertedNodes& insertedNodes) |
{ |
- document().updateLayoutIgnorePendingStylesheets(); |
+ document().updateStyleAndLayoutIgnorePendingStylesheets(); |
Node* lastLeafInserted = insertedNodes.lastLeafInserted(); |
if (lastLeafInserted && lastLeafInserted->isTextNode() && !nodeHasVisibleLayoutText(toText(*lastLeafInserted)) |
@@ -1458,7 +1458,7 @@ void ReplaceSelectionCommand::addSpacesForSmartReplace(EditingState* editingStat |
} |
} |
- document().updateLayout(); |
+ document().updateStyleAndLayout(); |
Position startDownstream = mostForwardCaretPosition(startOfInsertedContent.deepEquivalent()); |
Node* startNode = startDownstream.computeNodeAfterPosition(); |