Bug 846906 - Implement nsAppShellService::CreateWindowlessBrowser; r=bz; sr=benjamin

This commit is contained in:
Eddy Bruel
2013-04-04 15:24:32 +02:00
parent 495685895e
commit eddeb84940
6 changed files with 243 additions and 52 deletions

View File

@@ -36,7 +36,7 @@ InvalidateRegion(nsIWidget* aWidget, const nsIntRegion& aRegion)
/*static*/ already_AddRefed<nsIWidget>
nsIWidget::CreatePuppetWidget(TabChild* aTabChild)
{
NS_ABORT_IF_FALSE(nsIWidget::UsePuppetWidgets(),
NS_ABORT_IF_FALSE(!aTabChild || nsIWidget::UsePuppetWidgets(),
"PuppetWidgets not allowed in this configuration");
nsCOMPtr<nsIWidget> widget = new PuppetWidget(aTabChild);