if (objFrame) { nsCOMPtr<nsIPluginInstance> instance; objFrame->GetPluginInstance(*getter_AddRefs(instance)); if (instance) { aShell->RecreateFramesFor(aContent); }
if (objFrame && frame->GetProperty(nsLayoutAtoms::objectFrame)) {   aShell->RecreateFramesFor(aContent);
StartPluginInstance(PresShell *aShell, nsIContent *aContent){  // For now we just reconstruct the frame, but only if the element  // has a plugin instance.  nsIFrame *frame = aShell->GetPrimaryFrameFor(aContent);  if (frame) {    nsIObjectFrame *objFrame = nsnull;    CallQueryInterface(frame, &objFrame);    if (objFrame) {      nsCOMPtr<nsIPluginInstance> instance;      objFrame->GetPluginInstance(*getter_AddRefs(instance));      if (instance) {        aShell->RecreateFramesFor(aContent);      }    }  }}