| Index: ui/views/controls/menu/native_menu_win.cc
|
| diff --git a/ui/views/controls/menu/native_menu_win.cc b/ui/views/controls/menu/native_menu_win.cc
|
| index caddd70c4a5a2e2214d13fb1fe1fcbdad6a39eec..a3930f2d4985e24e601900dde796056114fa94e8 100644
|
| --- a/ui/views/controls/menu/native_menu_win.cc
|
| +++ b/ui/views/controls/menu/native_menu_win.cc
|
| @@ -282,11 +282,6 @@ class NativeMenuWin::MenuHostWindow {
|
| state = draw_item_struct->itemState & ODS_SELECTED ?
|
| NativeTheme::kHovered : NativeTheme::kNormal;
|
| }
|
| - int height =
|
| - draw_item_struct->rcItem.bottom - draw_item_struct->rcItem.top;
|
| - int icon_y = kItemTopMargin +
|
| - (height - kItemTopMargin - kItemBottomMargin -
|
| - config.check_height) / 2;
|
| gfx::Canvas canvas(gfx::Size(config.check_width, config.check_height),
|
| 1.0f,
|
| false);
|
| @@ -436,7 +431,6 @@ void NativeMenuWin::RunMenuAt(const gfx::Point& point, int alignment) {
|
|
|
| // Command dispatch is done through WM_MENUCOMMAND, handled by the host
|
| // window.
|
| - HWND hwnd = host_window_->hwnd();
|
| menu_to_select_ = NULL;
|
| position_to_select_ = -1;
|
| menu_to_select_factory_.InvalidateWeakPtrs();
|
|
|