Bug 1217307 - Remove some unnecessary null checks in rest of dom/. r=njn
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user