Chromium Code Reviews| 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..90af930f0147c8a6f697969c6b511bcb6a25e123 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()); |
| + gfx::Point anchor(context_menu_->AnchorRect().CenterPoint().x(), |
|
msw
2013/09/27 18:20:31
nit: cache the anchor rect in a local beforehand.
Mr4D (OOO till 08-26)
2013/09/27 20:29:35
Done.
|
| + context_menu_->AnchorRect().y()); |
| HideContextMenu(); |
| client_view_->OpenContextMenu(anchor); |
| } |