mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-16 20:20:51 +01:00
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:
parent
c54c5e1e81
commit
6d8e46fb63
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user