This commit is contained in:
beard%netscape.com 1999-03-14 20:06:59 +00:00
Родитель 72c8625f7f
Коммит 9bb426f3ee
1 изменённых файлов: 7 добавлений и 2 удалений

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

@ -34,6 +34,7 @@
#include "MRJPage.h" #include "MRJPage.h"
#include "AsyncMessage.h" #include "AsyncMessage.h"
#include "TopLevelFrame.h" #include "TopLevelFrame.h"
#include "EmbeddedFrame.h"
#include "LocalPort.h" #include "LocalPort.h"
#include "StringUtils.h" #include "StringUtils.h"
@ -729,7 +730,6 @@ OSStatus MRJContext::createFrame(JMFrameRef frameRef, JMFrameKind kind, const Re
// bind this newly created frame to this context, and vice versa. // bind this newly created frame to this context, and vice versa.
mViewerFrame = frameRef; mViewerFrame = frameRef;
frame = new AppletViewerFrame(frameRef, this); frame = new AppletViewerFrame(frameRef, this);
status = ::JMSetFrameData(frameRef, frame);
// make sure the frame's clipping is up-to-date. // make sure the frame's clipping is up-to-date.
setVisibility(); setVisibility();
@ -743,9 +743,14 @@ OSStatus MRJContext::createFrame(JMFrameRef frameRef, JMFrameKind kind, const Re
} else if (thePluginManager2 != NULL) { } else if (thePluginManager2 != NULL) {
// Can only do this safely if we are using the new API. // Can only do this safely if we are using the new API.
frame = new TopLevelFrame(mPluginInstance, frameRef, kind, initialBounds, resizeable); frame = new TopLevelFrame(mPluginInstance, frameRef, kind, initialBounds, resizeable);
status = ::JMSetFrameData(frameRef, frame); } else {
// Try to create a frame that lives in a newly created browser window.
frame = new EmbeddedFrame(mPluginInstance, frameRef, kind, initialBounds, resizeable);
} }
if (frame != NULL)
status = ::JMSetFrameData(frameRef, frame);
return status; return status;
} }