зеркало из https://github.com/mozilla/gecko-dev.git
Bug 174317, [gtk2] should use nsCOMPtr type for mTopLevelAccessible in nsWindow. This is NOT for default build.
This commit is contained in:
Родитель
393a3cd51e
Коммит
3832c12d36
|
@ -64,10 +64,6 @@
|
||||||
#include "nsXPIDLString.h"
|
#include "nsXPIDLString.h"
|
||||||
#include "nsIFile.h"
|
#include "nsIFile.h"
|
||||||
|
|
||||||
#ifdef ACCESSIBILITY
|
|
||||||
#include "nsAccessibilityInterface.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* utility functions */
|
/* utility functions */
|
||||||
static PRBool check_for_rollup(GdkWindow *aWindow,
|
static PRBool check_for_rollup(GdkWindow *aWindow,
|
||||||
gdouble aMouseX, gdouble aMouseY,
|
gdouble aMouseX, gdouble aMouseY,
|
||||||
|
@ -432,8 +428,10 @@ nsWindow::Destroy(void)
|
||||||
OnDestroy();
|
OnDestroy();
|
||||||
|
|
||||||
#ifdef ACCESSIBILITY
|
#ifdef ACCESSIBILITY
|
||||||
if (mTopLevelAccessible)
|
if (mTopLevelAccessible) {
|
||||||
nsAccessibilityInterface::RemoveTopLevel(mTopLevelAccessible);
|
nsAccessibilityInterface::RemoveTopLevel(mTopLevelAccessible);
|
||||||
|
mTopLevelAccessible = nsnull;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
|
|
|
@ -52,6 +52,10 @@
|
||||||
#include <gdk/gdkx.h>
|
#include <gdk/gdkx.h>
|
||||||
#include <gtk/gtkwindow.h>
|
#include <gtk/gtkwindow.h>
|
||||||
|
|
||||||
|
#ifdef ACCESSIBILITY
|
||||||
|
#include "nsAccessibilityInterface.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef USE_XIM
|
#ifdef USE_XIM
|
||||||
#include <gtk/gtkimmulticontext.h>
|
#include <gtk/gtkimmulticontext.h>
|
||||||
#include "pldhash.h"
|
#include "pldhash.h"
|
||||||
|
@ -270,7 +274,7 @@ private:
|
||||||
PRInt32 mSizeState;
|
PRInt32 mSizeState;
|
||||||
|
|
||||||
#ifdef ACCESSIBILITY
|
#ifdef ACCESSIBILITY
|
||||||
nsIAccessible *mTopLevelAccessible;
|
nsCOMPtr<nsIAccessible> mTopLevelAccessible;
|
||||||
void CreateTopLevelAccessible();
|
void CreateTopLevelAccessible();
|
||||||
NS_IMETHOD_(PRBool) DispatchAccessibleEvent(nsIAccessible** aAccessible);
|
NS_IMETHOD_(PRBool) DispatchAccessibleEvent(nsIAccessible** aAccessible);
|
||||||
#endif
|
#endif
|
||||||
|
|
Загрузка…
Ссылка в новой задаче