Index: ui/views/controls/menu/submenu_view.cc |
diff --git a/ui/views/controls/menu/submenu_view.cc b/ui/views/controls/menu/submenu_view.cc |
index 77795b98d52dea102524b5eac5899b043b8be57c..8dc2bd9fa588159cf4eca253b16c846292655d38 100644 |
--- a/ui/views/controls/menu/submenu_view.cc |
+++ b/ui/views/controls/menu/submenu_view.cc |
@@ -191,8 +191,8 @@ void SubmenuView::GetAccessibleNodeData(ui::AXNodeData* node_data) { |
node_data->AddState(ui::AX_STATE_VERTICAL); |
} |
-void SubmenuView::PaintChildren(const ui::PaintContext& context) { |
- View::PaintChildren(context); |
+void SubmenuView::PaintChildren(const PaintInfo& paint_info) { |
+ View::PaintChildren(paint_info); |
bool paint_drop_indicator = false; |
if (drop_item_) { |
@@ -210,7 +210,7 @@ void SubmenuView::PaintChildren(const ui::PaintContext& context) { |
if (paint_drop_indicator) { |
gfx::Rect bounds = CalculateDropIndicatorBounds(drop_item_, drop_position_); |
- ui::PaintRecorder recorder(context, size()); |
+ ui::PaintRecorder recorder(paint_info.context(), size()); |
recorder.canvas()->FillRect(bounds, kDropIndicatorColor); |
} |
} |