Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 2457523003: Support 'insertReplacementText' for spellcheck (Closed)
Patch Set: dtapuska's comment addressed Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 c93adb5767ade3e35b22b5afa9462e1a2514db9f..002e371c0b9d00d3b585feaa1dcdc223839d7fee 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -977,8 +977,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::InsertReplacementText);
}
void WebLocalFrameImpl::setMarkedText(const WebString& text,

Powered by Google App Engine
This is Rietveld 408576698