This commit is contained in:
pierre%netscape.com 1999-02-22 10:20:39 +00:00
Родитель 2c45e7ab0a
Коммит c7123f17aa
3 изменённых файлов: 2 добавлений и 11 удалений

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

@ -28,7 +28,7 @@
#include "nsAppShell.h"
#include "nsIAppShell.h"
#include "nsMacMessageSink.h" //¥¥¥ until this is moved into webshell(?)
#include "nsMacMessageSink.h"
#include "nsMacMessagePump.h"
#include "nsToolKit.h"
#include <Quickdraw.h>

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

@ -51,7 +51,7 @@ private:
Point mMousePoint; // keep track of where the mouse is at all times
PRBool mInBackground;
nsToolkit* mToolkit;
nsMacMessageSink* mMessageSink; //¥¥¥ should be COM_auto_ptr
nsMacMessageSink* mMessageSink;
// CLASS METHODS

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

@ -73,9 +73,6 @@ nsWindow::~nsWindow()
{
mDestructorCalled = PR_TRUE;
//¥¥¥ if (mToolkit && ((nsToolkit*)mToolkit)->GetFocus() == this )
//¥¥¥ ((nsToolkit*)mToolkit)->SetFocus(nsnull);
//Destroy();
if (mWindowRegion != nsnull)
@ -180,12 +177,6 @@ NS_IMETHODIMP nsWindow::Destroy()
return NS_OK;
mDestroyCalled = PR_TRUE;
//¥¥¥ // if the window being destroyed has the focus, lose it so that there isn't a dangling reference
//¥¥¥ if (mToolkit && ((nsToolkit*)mToolkit)->GetFocus() == this )
//¥¥¥ {
//¥¥¥ ((nsToolkit*)mToolkit)->SetFocus(nsnull);
//¥¥¥ }
nsBaseWidget::OnDestroy();
nsBaseWidget::Destroy();