| Index: ash/system/tray/tray_details_view.cc
|
| diff --git a/ash/system/tray/tray_details_view.cc b/ash/system/tray/tray_details_view.cc
|
| index f4507f0779185c5f8924c021d5a87d7975fa7729..5c5c17d9d331e3b4c5dc29da07b8bf5f8a2d5324 100644
|
| --- a/ash/system/tray/tray_details_view.cc
|
| +++ b/ash/system/tray/tray_details_view.cc
|
| @@ -65,19 +65,21 @@ class ScrollContentsView : public views::View {
|
| PositionHeaderRows();
|
| }
|
|
|
| - void PaintChildren(const ui::PaintContext& context) override {
|
| - views::View::PaintChildren(context);
|
| + void PaintChildren(const ui::PaintInfo& paint_info) override {
|
| + views::View::PaintChildren(paint_info);
|
| bool did_draw_shadow = false;
|
| // Paint header row separators.
|
| for (auto& header : headers_)
|
| - did_draw_shadow = PaintDelineation(header, context) || did_draw_shadow;
|
| + did_draw_shadow =
|
| + PaintDelineation(header, paint_info.context()) || did_draw_shadow;
|
|
|
| // Draw a shadow at the top of the viewport when scrolled, but only if a
|
| // header didn't already draw one. Overlap the shadow with the separator
|
| // that's below the header view so we don't get both a separator and a full
|
| // shadow.
|
| if (y() != 0 && !did_draw_shadow)
|
| - DrawShadow(context, gfx::Rect(0, 0, width(), -y() - kSeparatorWidth));
|
| + DrawShadow(paint_info.context(),
|
| + gfx::Rect(0, 0, width(), -y() - kSeparatorWidth));
|
| }
|
|
|
| void Layout() override {
|
|
|