Win: Fix assertion when selecting input text in reverse order due to revision #344 changes.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@355 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2011-11-03 16:26:07 +00:00
parent c54c5e1e81
commit 6d8e46fb63

View File

@ -1086,12 +1086,8 @@ void WebWidgetHost::UpdateInputMethod(HWND view)
new_type = host->webwidget_->textInputType();
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;
}
if (host->webwidget_->selectionBounds(startRect, endRect))
new_caret_bounds = endRect;
}
// Only sends text input type and caret bounds to the browser process if they