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 114e8543491a09cf284e8fc10fe4fc55a10228b0..32def58d761d13ff9eeca76f83140dde8e42649b 100644 |
--- a/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp |
+++ b/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp |
@@ -1977,6 +1977,10 @@ bool ReplaceSelectionCommand::performTrivialReplace( |
endingSelection().start())) |
return false; |
+ // TODO(editing-dev): Use of updateStyleAndLayoutIgnorePendingStylesheets |
+ // needs to be audited. See http://crbug.com/590369 for more details. |
+ document().updateStyleAndLayoutIgnorePendingStylesheets(); |
+ |
Node* nodeAfterInsertionPos = |
mostForwardCaretPosition(endingSelection().end()).anchorNode(); |
Text* textNode = toText(fragment.firstChild()); |