Chromium Code Reviews| Index: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
| diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
| index c0dffe073239c9626bb6734bdbde53eb45c11eaa..fca85dd33b2ab10417c91d1b4c2a65602baafce8 100644 |
| --- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
| +++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
| @@ -973,8 +973,9 @@ void WebLocalFrameImpl::replaceSelection(const WebString& text) { |
| bool selectReplacement = |
| frame()->editor().behavior().shouldSelectReplacement(); |
| bool smartReplace = true; |
| - frame()->editor().replaceSelectionWithText(text, selectReplacement, |
| - smartReplace); |
| + frame()->editor().replaceSelectionWithText( |
| + text, selectReplacement, smartReplace, |
| + InputEvent::InputType::InsertFromPaste); |
|
chongz
2016/10/27 16:41:25
I cannot find the usage of this method, but we pro
|
| } |
| void WebLocalFrameImpl::setMarkedText(const WebString& text, |