Bug 639835 - EVENT_DOCUMENT_LOAD_COMPLETE may be not fired at startup, r=roc

This commit is contained in:
Fernando Herrera 2011-05-28 18:26:56 +09:00
parent da89e08cb3
commit 3f61f30bc6

View File

@ -1097,6 +1097,12 @@ nsWindow::Show(PRBool aState)
}
}
#ifdef ACCESSIBILITY
if (aState && sAccessibilityEnabled) {
CreateRootAccessible();
}
#endif
NativeShow(aState);
return NS_OK;
@ -4247,10 +4253,6 @@ nsWindow::Create(nsIWidget *aParent,
}
}
if (sAccessibilityEnabled) {
LOG(("nsWindow:: Create Toplevel Accessibility\n"));
CreateRootAccessible();
}
#endif
#ifdef MOZ_DFB
@ -6328,6 +6330,7 @@ void
nsWindow::CreateRootAccessible()
{
if (mIsTopLevel && !mRootAccessible) {
LOG(("nsWindow:: Create Toplevel Accessibility\n"));
nsAccessible *acc = DispatchAccessibleEvent();
if (acc) {