fix: schedule a paint after browserview's background is set (#15784)
This commit is contained in:
parent
0b0a17ff91
commit
5db8197a5d
1 changed files with 1 additions and 0 deletions
|
@ -29,6 +29,7 @@ void NativeBrowserViewViews::SetBounds(const gfx::Rect& bounds) {
|
||||||
void NativeBrowserViewViews::SetBackgroundColor(SkColor color) {
|
void NativeBrowserViewViews::SetBackgroundColor(SkColor color) {
|
||||||
auto* view = GetInspectableWebContentsView()->GetView();
|
auto* view = GetInspectableWebContentsView()->GetView();
|
||||||
view->SetBackground(views::CreateSolidBackground(color));
|
view->SetBackground(views::CreateSolidBackground(color));
|
||||||
|
view->SchedulePaint();
|
||||||
}
|
}
|
||||||
|
|
||||||
// static
|
// static
|
||||||
|
|
Loading…
Reference in a new issue