Merge pull request #6737 from MaxWhere/setpainting-fix

Fix for transparent frames when offscreen window restarted painting
This commit is contained in:
Cheng Zhao 2016-08-05 20:47:35 +09:00 committed by GitHub
commit 5eeadb0ad4
4 changed files with 5 additions and 15 deletions

View file

@ -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 {