| 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..e139748cabbf0e6c2a2db88d3dd5f31d19837602 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp
|
| @@ -253,6 +253,10 @@ ReplacementFragment::ReplacementFragment(Document* document,
|
| if (text != evt->text() || !hasRichlyEditableStyle(*editableRoot)) {
|
| restoreAndRemoveTestRenderingNodesToFragment(holder);
|
|
|
| + // TODO(editing-dev): Use of updateStyleAndLayoutIgnorePendingStylesheets
|
| + // needs to be audited. See http://crbug.com/590369 for more details.
|
| + document->updateStyleAndLayoutIgnorePendingStylesheets();
|
| +
|
| m_fragment = createFragmentFromText(selection.toNormalizedEphemeralRange(),
|
| evt->text());
|
| if (!m_fragment->hasChildren())
|
|
|