| 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 2242aaecc2ae818d1407ca041066d4f19fa182e4..30d84ca27f9c60e0cd0712637de6c186fe31ef23 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp
|
| @@ -179,6 +179,8 @@ ReplacementFragment::ReplacementFragment(Document* document,
|
| if (!editableRoot)
|
| return;
|
|
|
| + m_document->updateStyleAndLayoutIgnorePendingStylesheets();
|
| +
|
| Element* shadowAncestorElement;
|
| if (editableRoot->isInShadowTree())
|
| shadowAncestorElement = editableRoot->ownerShadowHost();
|
|
|