Bug 387347 Text with "float" style inaccessible

r=aaronleventhal
This commit is contained in:
ginn.chen@sun.com 2007-07-17 02:32:11 -07:00
parent 047eedf672
commit 172d985b89
2 changed files with 3 additions and 1 deletions

View File

@ -77,6 +77,7 @@ ACCESSIBILITY_ATOM(deckFrame, "DeckFrame")
ACCESSIBILITY_ATOM(inlineBlockFrame, "InlineBlockFrame")
ACCESSIBILITY_ATOM(inlineFrame, "InlineFrame")
ACCESSIBILITY_ATOM(objectFrame, "ObjectFrame")
ACCESSIBILITY_ATOM(placeholderFrame, "PlaceholderFrame")
ACCESSIBILITY_ATOM(scrollFrame, "ScrollFrame")
ACCESSIBILITY_ATOM(textFrame, "TextFrame")
ACCESSIBILITY_ATOM(tableCellFrame, "TableCellFrame")

View File

@ -1384,7 +1384,8 @@ NS_IMETHODIMP nsAccessibilityService::GetAccessible(nsIDOMNode *aNode,
}
if (tryFrame) {
if (frame->GetRect().IsEmpty()) {
if (frame->GetType() != nsAccessibilityAtoms::placeholderFrame &&
frame->GetRect().IsEmpty()) {
*aIsHidden = PR_TRUE;
return NS_OK;
}