fix: schedule a paint after browserview's background is set (#15784)

This commit is contained in:
Heilig Benedek 2018-11-21 20:04:10 +01:00 committed by Charles Kerr
parent 0b0a17ff91
commit 5db8197a5d

View file

@ -29,6 +29,7 @@ void NativeBrowserViewViews::SetBounds(const gfx::Rect& bounds) {
void NativeBrowserViewViews::SetBackgroundColor(SkColor color) {
auto* view = GetInspectableWebContentsView()->GetView();
view->SetBackground(views::CreateSolidBackground(color));
view->SchedulePaint();
}
// static