| Index: content/browser/renderer_host/render_widget_host_view_aura.cc
|
| diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
|
| index 8499348116f1f071758b2f6f572737449e74f545..d84ff6c31d047fba30e9f32997d5c780446247bb 100644
|
| --- a/content/browser/renderer_host/render_widget_host_view_aura.cc
|
| +++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
|
| @@ -898,12 +898,14 @@ gfx::Size RenderWidgetHostViewAura::GetRequestedRendererSize() const {
|
|
|
| void RenderWidgetHostViewAura::SelectionBoundsChanged(
|
| const ViewHostMsg_SelectionBounds_Params& params) {
|
| - if (selection_anchor_rect_ == params.anchor_rect &&
|
| - selection_focus_rect_ == params.focus_rect)
|
| + gfx::Rect anchor_rect = gfx::ToEnclosingRect(params.anchor_rect);
|
| + gfx::Rect focus_rect = gfx::ToEnclosingRect(params.focus_rect);
|
| + if (selection_anchor_rect_ == anchor_rect &&
|
| + selection_focus_rect_ == focus_rect)
|
| return;
|
|
|
| - selection_anchor_rect_ = params.anchor_rect;
|
| - selection_focus_rect_ = params.focus_rect;
|
| + selection_anchor_rect_ = anchor_rect;
|
| + selection_focus_rect_ = focus_rect;
|
|
|
| if (GetInputMethod())
|
| GetInputMethod()->OnCaretBoundsChanged(this);
|
|
|