mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
4cef8ed58e
commit
a11ff4a96f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user