Bug 718287 - Remove plugins ForceRedraw functions; r=bz

This commit is contained in:
Ms2ger
2012-02-10 11:04:45 +01:00
parent c4ad756f4b
commit 961114ca3a
6 changed files with 3 additions and 48 deletions

View File

@@ -1308,22 +1308,6 @@ _invalidateregion(NPP npp, NPRegion invalidRegion)
void NP_CALLBACK
_forceredraw(NPP npp)
{
if (!NS_IsMainThread()) {
NPN_PLUGIN_LOG(PLUGIN_LOG_ALWAYS,("NPN_forceredraw called from the wrong thread\n"));
return;
}
NPN_PLUGIN_LOG(PLUGIN_LOG_NORMAL, ("NPN_ForceDraw: npp=%p\n", (void*)npp));
if (!npp || !npp->ndata) {
NS_WARNING("_forceredraw: npp or npp->ndata == 0");
return;
}
nsNPAPIPluginInstance *inst = (nsNPAPIPluginInstance*)npp->ndata;
PluginDestructionGuard guard(inst);
inst->ForceRedraw();
}
NPObject* NP_CALLBACK