Index: third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp |
diff --git a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp |
index 57d9249d5ad8eb6200db2002d0776811d8d54a27..082cd875d9a28b3a27e7945644619f9c16d4f745 100644 |
--- a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp |
+++ b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp |
@@ -379,6 +379,9 @@ void CompositeEditCommand::insertNodeBefore( |
EditingState* editingState, |
ShouldAssumeContentIsAlwaysEditable shouldAssumeContentIsAlwaysEditable) { |
DCHECK_NE(document().body(), refChild); |
+ // TODO(editing-dev): Use of updateStyleAndLayoutIgnorePendingStylesheets |
+ // needs to be audited. See http://crbug.com/590369 for more details. |
+ document().updateStyleAndLayoutIgnorePendingStylesheets(); |
ABORT_EDITING_COMMAND_IF(!hasEditableStyle(*refChild->parentNode()) && |
refChild->parentNode()->inActiveDocument()); |
applyCommandToComposite( |