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

Unified Diff: content/renderer/input/frame_input_handler_impl.cc

Issue 2903833002: Reland: Update TextSelection for non-user initiated events
Patch Set: Add test for JS cursor movement Created 3 years, 5 months 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
« no previous file with comments | « content/public/test/text_input_test_utils.cc ('k') | content/renderer/input/render_widget_input_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/input/frame_input_handler_impl.cc
diff --git a/content/renderer/input/frame_input_handler_impl.cc b/content/renderer/input/frame_input_handler_impl.cc
index 52c00fa5f281c20c610f1509650af047e2adb3a4..909207f674fd2ab7363e54c9f7cf2796f91a2448 100644
--- a/content/renderer/input/frame_input_handler_impl.cc
+++ b/content/renderer/input/frame_input_handler_impl.cc
@@ -219,7 +219,7 @@ void FrameInputHandlerImpl::Replace(const base::string16& word) {
if (frame->HasSelection())
frame->SelectWordAroundCaret();
frame->ReplaceSelection(blink::WebString::FromUTF16(word));
- render_frame_->SyncSelectionIfRequired();
+ render_frame_->SyncSelectionIfRequired(true);
}
void FrameInputHandlerImpl::ReplaceMisspelling(const base::string16& word) {
« no previous file with comments | « content/public/test/text_input_test_utils.cc ('k') | content/renderer/input/render_widget_input_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698