This commit is contained in:
av%netscape.com 1999-06-13 06:18:35 +00:00
Родитель d087079bb8
Коммит 4a3a4f1355
2 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -148,7 +148,7 @@ public:
NS_IMETHOD Init(nsIPresContext *aPresContext, nsObjectFrame *aFrame);
nsPluginPort* GetPluginPort();
void ReleasePluginPort();//~~~
void ReleasePluginPort(nsPluginPort * pluginPort);//~~~
void SetPluginHost(nsIPluginHost* aHost);
@ -1436,7 +1436,7 @@ nsObjectFrame::DidReflow(nsIPresContext& aPresContext,
}
//~~~
mInstanceOwner->ReleasePluginPort();
mInstanceOwner->ReleasePluginPort((nsPluginPort *)window->window);
if (mWidget)
{
@ -2539,13 +2539,13 @@ nsPluginPort* nsPluginInstanceOwner::GetPluginPort()
}
//~~~
void nsPluginInstanceOwner::ReleasePluginPort()
void nsPluginInstanceOwner::ReleasePluginPort(nsPluginPort * pluginPort)
{
#ifdef XP_WIN
if (mWidget != NULL)
{
if(mPluginWindow.type == nsPluginWindowType_Drawable)
mWidget->FreeNativeData((HDC)mPluginWindow.window, NS_NATIVE_GRAPHIC);
mWidget->FreeNativeData((HDC)pluginPort, NS_NATIVE_GRAPHIC);
}
#endif
}

Просмотреть файл

@ -148,7 +148,7 @@ public:
NS_IMETHOD Init(nsIPresContext *aPresContext, nsObjectFrame *aFrame);
nsPluginPort* GetPluginPort();
void ReleasePluginPort();//~~~
void ReleasePluginPort(nsPluginPort * pluginPort);//~~~
void SetPluginHost(nsIPluginHost* aHost);
@ -1436,7 +1436,7 @@ nsObjectFrame::DidReflow(nsIPresContext& aPresContext,
}
//~~~
mInstanceOwner->ReleasePluginPort();
mInstanceOwner->ReleasePluginPort((nsPluginPort *)window->window);
if (mWidget)
{
@ -2539,13 +2539,13 @@ nsPluginPort* nsPluginInstanceOwner::GetPluginPort()
}
//~~~
void nsPluginInstanceOwner::ReleasePluginPort()
void nsPluginInstanceOwner::ReleasePluginPort(nsPluginPort * pluginPort)
{
#ifdef XP_WIN
if (mWidget != NULL)
{
if(mPluginWindow.type == nsPluginWindowType_Drawable)
mWidget->FreeNativeData((HDC)mPluginWindow.window, NS_NATIVE_GRAPHIC);
mWidget->FreeNativeData((HDC)pluginPort, NS_NATIVE_GRAPHIC);
}
#endif
}