Bug 1217307 - Remove some unnecessary null checks in rest of dom/. r=njn

This commit is contained in:
Birunthan Mohanathas
2015-11-19 09:13:49 +02:00
parent 87edb9df5e
commit e95885610b
20 changed files with 5 additions and 68 deletions

View File

@@ -575,13 +575,11 @@ nsPluginNativeWindowWin::GetPluginWindowEvent(HWND aWnd, UINT aMsg, WPARAM aWPar
if (!mCachedPluginWindowEvent)
{
event = new PluginWindowEvent();
if (!event) return nullptr;
mCachedPluginWindowEvent = event;
}
else if (mCachedPluginWindowEvent->InUse())
{
event = new PluginWindowEvent();
if (!event) return nullptr;
}
else
{
@@ -739,8 +737,7 @@ nsresult PLUG_NewPluginNativeWindow(nsPluginNativeWindow ** aPluginNativeWindow)
NS_ENSURE_ARG_POINTER(aPluginNativeWindow);
*aPluginNativeWindow = new nsPluginNativeWindowWin();
return *aPluginNativeWindow ? NS_OK : NS_ERROR_OUT_OF_MEMORY;
return NS_OK;
}
nsresult PLUG_DeletePluginNativeWindow(nsPluginNativeWindow * aPluginNativeWindow)