made GlobalWindowImpl support weak ref to get around

holding on to raw pointers to windows causing problems
in destruction of windows
This commit is contained in:
anthonyd%netscape.com 2000-05-14 05:26:06 +00:00
Родитель 0dc65fb828
Коммит c8f6bd642a
2 изменённых файлов: 4 добавлений и 1 удалений

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

@ -171,6 +171,7 @@ NS_INTERFACE_MAP_BEGIN(GlobalWindowImpl)
NS_INTERFACE_MAP_ENTRY(nsPIDOMWindow)
NS_INTERFACE_MAP_ENTRY(nsIDOMViewCSS)
NS_INTERFACE_MAP_ENTRY(nsIDOMAbstractView)
NS_INTERFACE_MAP_ENTRY(nsISupportsWeakReference)
NS_INTERFACE_MAP_END
//*****************************************************************************

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

@ -26,6 +26,7 @@
// Local Includes
// Helper Classes
#include "nsCOMPtr.h"
#include "nsWeakReference.h"
#include "nsHashtable.h"
// Interfaces Needed
@ -78,7 +79,8 @@ class GlobalWindowImpl : public nsIScriptGlobalObject,
public nsIScriptObjectPrincipal,
public nsIDOMEventReceiver,
public nsPIDOMWindow,
public nsIDOMViewCSS
public nsIDOMViewCSS,
public nsSupportsWeakReference
{
public:
// nsISupports