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 97bbe6ac434080a8f8bffc1329c265dd5d967255..0ea3259ae08824e95373f67d3384e6f3899714d0 100644 |
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
@@ -949,12 +949,7 @@ void WebLocalFrameImpl::replaceSelection(const WebString& text) { |
// needs to be audited. See http://crbug.com/590369 for more details. |
frame()->document()->updateStyleAndLayoutIgnorePendingStylesheets(); |
- bool selectReplacement = |
- frame()->editor().behavior().shouldSelectReplacement(); |
- bool smartReplace = true; |
- frame()->editor().replaceSelectionWithText( |
- text, selectReplacement, smartReplace, |
- InputEvent::InputType::InsertReplacementText); |
+ frame()->editor().replaceSelection(text); |
} |
void WebLocalFrameImpl::setMarkedText(const WebString& text, |