Mac: Fix Korean input on OSX 10.11
commit28025f2c0eebbd850c745005f955b53b9dfa1cdf
authorandresantoso <andresantoso@chromium.org>
Tue, 21 Jul 2015 21:46:11 +0000 (21 14:46 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 21 Jul 2015 21:46:46 +0000 (21 21:46 +0000)
tree3196f72ac237733ea98bb4e1273d925e7111e128
parentc6f82b158f374c172a46326699f03d97777faa8e
Mac: Fix Korean input on OSX 10.11

handling_input_event_ needs to be set in RenderWidget::OnImeSetComposition,
otherwise RenderView::DidChangeSelection will skip sending the selection
change message the the browser, even though it was correctly set on the
renderer side.

Also fix incorrectly set selectedRange_ in -setMarkedText,
|newSelRange| is relative to the marked text while selectedRange_ is
relative to the entire text storage.

BUG=500376

Review URL: https://codereview.chromium.org/1240943002

Cr-Commit-Position: refs/heads/master@{#339754}
content/browser/renderer_host/render_widget_host_view_mac.h
content/browser/renderer_host/render_widget_host_view_mac.mm
content/renderer/render_widget.cc