Commit 4144406d authored by Szabolcs David's avatar Szabolcs David
Browse files

Widgets: Use overridden show()


Notify client about the show() after RWHVQD creation. The
WasShown(...) hack is not necessary anymore in the core layer.

Change-Id: I221b2d027ee83d81d70191419bc4fa8d41231674
Reviewed-by: default avatarAndras Becsi <andras.becsi@theqtcompany.com>
Showing with 1 addition and 4 deletions
......@@ -121,9 +121,6 @@ void WebContentsDelegateQt::AddNewContents(content::WebContents* source, content
WebContentsAdapter *newAdapter = createWindow(new_contents, disposition, initial_pos, user_gesture);
if (was_blocked)
*was_blocked = !newAdapter;
if (content::RenderWidgetHostImpl *impl = content::RenderWidgetHostImpl::From(new_contents->GetRenderViewHost()))
impl->WasShown(ui::LatencyInfo());
}
void WebContentsDelegateQt::CloseContents(content::WebContents *source)
......
......@@ -81,7 +81,7 @@ void RenderWidgetHostViewQtDelegateWidget::initAsChild(WebContentsAdapterClient*
if (pagePrivate->view) {
pagePrivate->view->layout()->addWidget(this);
pagePrivate->view->setFocusProxy(this);
QOpenGLWidget::show();
show();
} else
setParent(0);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment