Bug 1293596 (part 7) - Make nsIWidget::Destroy infallible. r=karlt.
This commit is contained in:
@@ -170,11 +170,11 @@ PuppetWidget::CreateChild(const LayoutDeviceIntRect& aRect,
|
||||
widget.forget() : nullptr);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
void
|
||||
PuppetWidget::Destroy()
|
||||
{
|
||||
if (mOnDestroyCalled) {
|
||||
return NS_OK;
|
||||
return;
|
||||
}
|
||||
mOnDestroyCalled = true;
|
||||
|
||||
@@ -191,7 +191,6 @@ PuppetWidget::Destroy()
|
||||
}
|
||||
mLayerManager = nullptr;
|
||||
mTabChild = nullptr;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
||||
Reference in New Issue
Block a user