| Index: views/controls/menu/menu_item_view_win.cc
|
| ===================================================================
|
| --- views/controls/menu/menu_item_view_win.cc (revision 82144)
|
| +++ views/controls/menu/menu_item_view_win.cc (working copy)
|
| @@ -49,7 +49,7 @@
|
| height());
|
| AdjustBoundsForRTLUI(&gutter_bounds);
|
| NativeTheme::ExtraParams extra;
|
| - NativeTheme::instance()->Paint(canvas->AsCanvasSkia(),
|
| + NativeTheme::instance()->Paint(canvas->AsCanvasSkia()->skia_canvas(),
|
| NativeTheme::kMenuPopupGutter,
|
| NativeTheme::kNormal,
|
| gutter_bounds,
|
| @@ -62,7 +62,7 @@
|
| NativeTheme::ExtraParams extra;
|
| extra.menu_item.is_selected = render_selection;
|
| AdjustBoundsForRTLUI(&item_bounds);
|
| - NativeTheme::instance()->Paint(canvas->AsCanvasSkia(),
|
| + NativeTheme::instance()->Paint(canvas->AsCanvasSkia()->skia_canvas(),
|
| NativeTheme::kMenuItemBackground, control_state, item_bounds, extra);
|
| }
|
|
|
| @@ -127,7 +127,7 @@
|
| // right direction.
|
| gfx::NativeTheme::ExtraParams extra;
|
| extra.menu_arrow.pointing_right = !base::i18n::IsRTL();
|
| - gfx::NativeTheme::instance()->Paint(canvas->AsCanvasSkia(),
|
| + gfx::NativeTheme::instance()->Paint(canvas->AsCanvasSkia()->skia_canvas(),
|
| gfx::NativeTheme::kMenuPopupArrow, control_state, arrow_bounds, extra);
|
| }
|
| }
|
| @@ -155,13 +155,13 @@
|
| // Draw the background.
|
| gfx::Rect bg_bounds(0, 0, icon_x + icon_width, height());
|
| AdjustBoundsForRTLUI(&bg_bounds);
|
| - NativeTheme::instance()->Paint(canvas->AsCanvasSkia(),
|
| + NativeTheme::instance()->Paint(canvas->AsCanvasSkia()->skia_canvas(),
|
| NativeTheme::kMenuCheckBackground, state, bg_bounds, extra);
|
|
|
| // And the check.
|
| gfx::Rect icon_bounds(icon_x / 2, icon_y, icon_width, icon_height);
|
| AdjustBoundsForRTLUI(&icon_bounds);
|
| - NativeTheme::instance()->Paint(canvas->AsCanvasSkia(),
|
| + NativeTheme::instance()->Paint(canvas->AsCanvasSkia()->skia_canvas(),
|
| NativeTheme::kMenuCheck, state, bg_bounds, extra);
|
| }
|
|
|
|
|