bug 238957 15% Tp regression on redwood (gtk2 Firefox)

r = kyle
sr= bryner
a = chofmann
This commit is contained in:
louie.zhao%sun.com 2004-03-30 10:33:26 +00:00
Родитель a3b9707b57
Коммит 9a58b51e24
1 изменённых файлов: 18 добавлений и 14 удалений

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

@ -3824,13 +3824,15 @@ nsWindow::DispatchActivateEvent(void)
{ {
nsCommonWidget::DispatchActivateEvent(); nsCommonWidget::DispatchActivateEvent();
nsCOMPtr<nsIAccessible> rootAcc; if (sAccessibilityEnabled) {
GetRootAccessible(getter_AddRefs(rootAcc)); nsCOMPtr<nsIAccessible> rootAcc;
nsCOMPtr<nsPIAccessible> privAcc(do_QueryInterface(rootAcc)); GetRootAccessible(getter_AddRefs(rootAcc));
if (privAcc) { nsCOMPtr<nsPIAccessible> privAcc(do_QueryInterface(rootAcc));
privAcc->FireToolkitEvent( if (privAcc) {
nsIAccessibleEvent::EVENT_ATK_WINDOW_ACTIVATE, privAcc->FireToolkitEvent(
rootAcc, nsnull); nsIAccessibleEvent::EVENT_ATK_WINDOW_ACTIVATE,
rootAcc, nsnull);
}
} }
} }
@ -3839,13 +3841,15 @@ nsWindow::DispatchDeactivateEvent(void)
{ {
nsCommonWidget::DispatchDeactivateEvent(); nsCommonWidget::DispatchDeactivateEvent();
nsCOMPtr<nsIAccessible> rootAcc; if (sAccessibilityEnabled) {
GetRootAccessible(getter_AddRefs(rootAcc)); nsCOMPtr<nsIAccessible> rootAcc;
nsCOMPtr<nsPIAccessible> privAcc(do_QueryInterface(rootAcc)); GetRootAccessible(getter_AddRefs(rootAcc));
if (privAcc) { nsCOMPtr<nsPIAccessible> privAcc(do_QueryInterface(rootAcc));
privAcc->FireToolkitEvent( if (privAcc) {
nsIAccessibleEvent::EVENT_ATK_WINDOW_DEACTIVATE, privAcc->FireToolkitEvent(
rootAcc, nsnull); nsIAccessibleEvent::EVENT_ATK_WINDOW_DEACTIVATE,
rootAcc, nsnull);
}
} }
} }
#endif /* #ifdef ACCESSIBILITY */ #endif /* #ifdef ACCESSIBILITY */