| Index: third_party/WebKit/Source/core/editing/Editor.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/Editor.cpp b/third_party/WebKit/Source/core/editing/Editor.cpp
|
| index fe3fdfdc55ab2179587618a04286b13fb1ddf6ad..74818e022a20ffb40cba3ae648826a4ca11c544f 100644
|
| --- a/third_party/WebKit/Source/core/editing/Editor.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/Editor.cpp
|
| @@ -560,6 +560,7 @@ bool Editor::canSmartReplaceWithPasteboard(Pasteboard* pasteboard)
|
|
|
| void Editor::replaceSelectionWithFragment(DocumentFragment* fragment, bool selectReplacement, bool smartReplace, bool matchStyle)
|
| {
|
| + frame().document()->updateStyleAndLayoutIgnorePendingStylesheets();
|
| if (frame().selection().isNone() || !frame().selection().isContentEditable() || !fragment)
|
| return;
|
|
|
|
|