Merge pull request #6737 from MaxWhere/setpainting-fix
Fix for transparent frames when offscreen window restarted painting
This commit is contained in:
commit
5eeadb0ad4
4 changed files with 5 additions and 15 deletions
|
@ -1349,10 +1349,8 @@ void WebContents::StartPainting() {
|
|||
|
||||
auto* osr_rwhv = static_cast<OffScreenRenderWidgetHostView*>(
|
||||
web_contents()->GetRenderWidgetHostView());
|
||||
if (osr_rwhv) {
|
||||
osr_rwhv->Show();
|
||||
if (osr_rwhv)
|
||||
osr_rwhv->SetPainting(true);
|
||||
}
|
||||
}
|
||||
|
||||
void WebContents::StopPainting() {
|
||||
|
@ -1361,10 +1359,8 @@ void WebContents::StopPainting() {
|
|||
|
||||
auto* osr_rwhv = static_cast<OffScreenRenderWidgetHostView*>(
|
||||
web_contents()->GetRenderWidgetHostView());
|
||||
if (osr_rwhv) {
|
||||
if (osr_rwhv)
|
||||
osr_rwhv->SetPainting(false);
|
||||
osr_rwhv->Hide();
|
||||
}
|
||||
}
|
||||
|
||||
bool WebContents::IsPainting() const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue