| Index: ui/native_theme/native_theme_win.cc
|
| diff --git a/ui/native_theme/native_theme_win.cc b/ui/native_theme/native_theme_win.cc
|
| index 24eaae35e6953f266d2048093adef6e60e163320..eea06d3a9b04c663b60c8ab42712b372aab8840b 100644
|
| --- a/ui/native_theme/native_theme_win.cc
|
| +++ b/ui/native_theme/native_theme_win.cc
|
| @@ -264,7 +264,7 @@ void NativeThemeWin::Paint(SkCanvas* canvas,
|
| PaintMenuGutter(canvas, rect);
|
| return;
|
| case kMenuPopupSeparator:
|
| - PaintMenuSeparator(canvas, rect);
|
| + PaintMenuSeparator(canvas, *extra.menu_separator.paint_rect);
|
| return;
|
| case kMenuPopupBackground:
|
| PaintMenuBackground(canvas, rect);
|
| @@ -429,7 +429,7 @@ void NativeThemeWin::PaintDirect(SkCanvas* destination_canvas,
|
| PaintMenuGutter(hdc, rect);
|
| return;
|
| case kMenuPopupSeparator:
|
| - PaintMenuSeparator(hdc, rect);
|
| + PaintMenuSeparator(hdc, *extra.menu_separator.paint_rect);
|
| return;
|
| case kMenuItemBackground:
|
| PaintMenuItemBackground(hdc, state, rect, extra.menu_item);
|
| @@ -866,9 +866,8 @@ HRESULT NativeThemeWin::PaintButton(HDC hdc,
|
| return S_OK;
|
| }
|
|
|
| -HRESULT NativeThemeWin::PaintMenuSeparator(
|
| - HDC hdc,
|
| - const gfx::Rect& rect) const {
|
| +HRESULT NativeThemeWin::PaintMenuSeparator(HDC hdc,
|
| + const gfx::Rect& rect) const {
|
| RECT rect_win = rect.ToRECT();
|
|
|
| HANDLE handle = GetThemeHandle(MENU);
|
|
|