Update to Chromium revision 107708.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@344 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2011-10-28 19:40:31 +00:00
parent acf7cf5738
commit 5147a4c7a0
7 changed files with 22 additions and 15 deletions

View File

@@ -1084,7 +1084,14 @@ void WebWidgetHost::UpdateInputMethod(HWND view)
if (host->webwidget_) {
new_type = host->webwidget_->textInputType();
new_caret_bounds = host->webwidget_->caretOrSelectionBounds();
WebKit::WebRect startRect, endRect;
if (host->webwidget_->selectionBounds(startRect, endRect)) {
new_caret_bounds.x = startRect.x;
new_caret_bounds.y = startRect.y;
new_caret_bounds.width = endRect.x + endRect.width - startRect.x;
new_caret_bounds.height = endRect.y + endRect.height - startRect.y;
}
}
// Only sends text input type and caret bounds to the browser process if they