Bug 530652 - Some sites not render flash. r=karlt

--HG--
extra : rebase_source : f0078705705e960fe148fd9d64847c38ff58a656
This commit is contained in:
Doug Turner 2009-11-24 05:57:58 -08:00
parent bf757be9e5
commit 387eed8493

View File

@ -4805,6 +4805,7 @@ void nsPluginInstanceOwner::Paint(gfxContext* aContext,
gfxMatrix matrix = aContext->CurrentMatrix(); gfxMatrix matrix = aContext->CurrentMatrix();
if (!matrix.HasNonAxisAlignedTransform()) if (!matrix.HasNonAxisAlignedTransform())
NativeImageDraw(); NativeImageDraw();
return;
} }
#endif #endif
@ -5780,6 +5781,15 @@ nsPluginInstanceOwner::SetAbsoluteScreenPosition(nsIDOMElement* element,
mBlitParentElement = element; mBlitParentElement = element;
UpdateVisibility(); UpdateVisibility();
if (!mInstance)
return NS_OK;
PRBool simpleImageRender = PR_FALSE;
mInstance->GetValueFromPlugin(NPPVpluginWindowlessLocalBool,
&simpleImageRender);
if (mInstance)
NativeImageDraw();
return NS_OK; return NS_OK;
} }
#endif #endif