diff options
Diffstat (limited to 'chrome/views/menu_button.cc')
-rw-r--r-- | chrome/views/menu_button.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/views/menu_button.cc b/chrome/views/menu_button.cc index 847239a..038faa0 100644 --- a/chrome/views/menu_button.cc +++ b/chrome/views/menu_button.cc @@ -126,14 +126,13 @@ bool MenuButton::Activate() { // after the menu closes. PaintNow(); if (menu_delegate_) { - CRect lb; - GetLocalBounds(&lb, true); + gfx::Rect lb = GetLocalBounds(true); // The position of the menu depends on whether or not the locale is // right-to-left. - gfx::Point menu_position(lb.BottomRight()); + gfx::Point menu_position(lb.right(), lb.bottom()); if (UILayoutIsRightToLeft()) - menu_position.set_x(lb.left); + menu_position.set_x(lb.x()); View::ConvertPointToScreen(this, &menu_position); if (UILayoutIsRightToLeft()) |