Bug 630194 - Make sure accessibility is notified for all lazily generated frames, r=surkov, sr=bz, a=final+

This commit is contained in:
Fernando Herrera 2011-02-14 17:39:59 +08:00
Родитель acce678852
Коммит f37a97c681
1 изменённых файлов: 11 добавлений и 0 удалений

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

@ -11764,6 +11764,17 @@ nsCSSFrameConstructor::GenerateChildFrames(nsIFrame* aFrame)
EndUpdate();
}
#ifdef ACCESSIBILITY
nsAccessibilityService* accService = nsIPresShell::AccService();
if (accService) {
nsIContent* container = aFrame->GetContent();
nsIContent* child = container->GetFirstChild();
if (child) {
accService->ContentRangeInserted(mPresShell, container, child, nsnull);
}
}
#endif
// call XBL constructors after the frames are created
mPresShell->GetDocument()->BindingManager()->ProcessAttachedQueue();