Rest of patch for bug 387347 (last was incorrectly marked for bug 387437). Regression in exposing accessible objects for nodes with float style. Patch by Ginn Chen, r=aaronlev, a=dsicore

This commit is contained in:
aaronleventhal@moonset.net 2007-08-10 12:47:03 -07:00
Родитель 73b527cc1e
Коммит ad1d604a7a
1 изменённых файлов: 8 добавлений и 2 удалений

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

@ -1385,8 +1385,14 @@ NS_IMETHODIMP nsAccessibilityService::GetAccessible(nsIDOMNode *aNode,
}
if (tryFrame) {
if (frame->GetType() != nsAccessibilityAtoms::placeholderFrame &&
frame->GetRect().IsEmpty()) {
// Do not create accessible object subtrees for non-rendered table captions.
// This could not be done in nsTableCaptionFrame::GetAccessible() because the
// descendants of the table caption would still be created.
// By setting *aIsHidden = PR_TRUE we ensure that no descendant accessibles are created
if (frame->GetType() == nsAccessibilityAtoms::tableCaptionFrame &&
frame->GetRect().IsEmpty()) {
// XXX This is not the ideal place for this code, but right now there is
// no better place:
*aIsHidden = PR_TRUE;
return NS_OK;
}