| Index: ui/views/touchui/touch_selection_controller_impl.cc
|
| diff --git a/ui/views/touchui/touch_selection_controller_impl.cc b/ui/views/touchui/touch_selection_controller_impl.cc
|
| index 89f6bdcafa8799b209e8bf96536c634a16c0737c..5b592c26ae2929ba43226b72e37ddab4b9a21c15 100644
|
| --- a/ui/views/touchui/touch_selection_controller_impl.cc
|
| +++ b/ui/views/touchui/touch_selection_controller_impl.cc
|
| @@ -422,8 +422,8 @@ void TouchSelectionControllerImpl::ExecuteCommand(int command_id,
|
|
|
| void TouchSelectionControllerImpl::OpenContextMenu() {
|
| // Context menu should appear centered on top of the selected region.
|
| - gfx::Point anchor(context_menu_->anchor_rect().CenterPoint().x(),
|
| - context_menu_->anchor_rect().y());
|
| + const gfx::Rect rect = context_menu_->GetAnchorRect();
|
| + const gfx::Point anchor(rect.CenterPoint().x(), rect.y());
|
| HideContextMenu();
|
| client_view_->OpenContextMenu(anchor);
|
| }
|
|
|