Bug 724886: Push images from plugin code instead of pulling from nsObjectFrame. r=roc

This commit is contained in:
Bas Schouten
2012-02-08 16:34:27 +01:00
parent 3abd825685
commit 86897d23dd
13 changed files with 72 additions and 49 deletions

View File

@@ -958,15 +958,15 @@ nsNPAPIPluginInstance::HandleGUIEvent(const nsGUIEvent& anEvent, bool* handled)
#endif
nsresult
nsNPAPIPluginInstance::GetImage(ImageContainer* aContainer, Image** aImage)
nsNPAPIPluginInstance::GetImageContainer(ImageContainer**aContainer)
{
*aImage = nsnull;
*aContainer = nsnull;
if (RUNNING != mRunning)
return NS_OK;
AutoPluginLibraryCall library(this);
return !library ? NS_ERROR_FAILURE : library->GetImage(&mNPP, aContainer, aImage);
return !library ? NS_ERROR_FAILURE : library->GetImageContainer(&mNPP, aContainer);
}
nsresult