зеркало из https://github.com/mozilla/gecko-dev.git
bug 238957 15% Tp regression on redwood (gtk2 Firefox)
r = kyle sr= bryner a = chofmann
This commit is contained in:
Родитель
a3b9707b57
Коммит
9a58b51e24
|
@ -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 */
|
||||||
|
|
Загрузка…
Ссылка в новой задаче