зеркало из https://github.com/electron/electron.git
chore: remove no-op force-paint for hidden windows (#35532)
* chore: remove no-op force-paint for hidden windows * fix build
This commit is contained in:
Родитель
08ccc81574
Коммит
7d89cb1bd4
|
@ -158,17 +158,6 @@ void BrowserWindow::RenderViewHostChanged(content::RenderViewHost* old_host,
|
|||
new_host->GetWidget()->AddInputEventObserver(this);
|
||||
}
|
||||
|
||||
void BrowserWindow::DidFirstVisuallyNonEmptyPaint() {
|
||||
if (window()->IsClosed() || window()->IsVisible())
|
||||
return;
|
||||
|
||||
// When there is a non-empty first paint, resize the RenderWidget to force
|
||||
// Chromium to draw.
|
||||
auto* const view = web_contents()->GetRenderWidgetHostView();
|
||||
view->Show();
|
||||
view->SetSize(window()->GetContentSize());
|
||||
}
|
||||
|
||||
void BrowserWindow::BeforeUnloadDialogCancelled() {
|
||||
WindowList::WindowCloseCancelled(window());
|
||||
// Cancel unresponsive event when window close is cancelled.
|
||||
|
|
|
@ -49,7 +49,6 @@ class BrowserWindow : public BaseWindow,
|
|||
// content::WebContentsObserver:
|
||||
void RenderViewHostChanged(content::RenderViewHost* old_host,
|
||||
content::RenderViewHost* new_host) override;
|
||||
void DidFirstVisuallyNonEmptyPaint() override;
|
||||
void BeforeUnloadDialogCancelled() override;
|
||||
void OnRendererUnresponsive(content::RenderProcessHost*) override;
|
||||
void OnRendererResponsive(
|
||||
|
|
Загрузка…
Ссылка в новой задаче