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