Bug 298968. List items, tbody, thead and tfoot should be nameless. r=parente, sr=neil, a=mkaply

This commit is contained in:
aaronleventhal%moonset.net 2005-06-28 16:49:13 +00:00
parent 372e50a09b
commit 6ff0f9e270
2 changed files with 2 additions and 1 deletions

View File

@ -145,7 +145,7 @@ NS_IMETHODIMP nsAccessible::GetName(nsAString& aName)
return NS_ERROR_FAILURE; // Node shut down
}
PRBool canAggregateName = !mRoleMapEntry ||
PRBool canAggregateName = mRoleMapEntry &&
mRoleMapEntry->nameRule == eNameOkFromChildren;
if (content->IsContentOfType(nsIContent::eHTML)) {

View File

@ -126,6 +126,7 @@ public:
NS_IMETHOD Shutdown() { nsresult rv = nsAccessibleWrap::Shutdown(); mBulletAccessible = nsnull; return rv; }
NS_IMETHOD GetRole(PRUint32 *aRole) { *aRole = ROLE_LISTITEM; return NS_OK; }
NS_IMETHOD GetState(PRUint32 *aState) { nsAccessibleWrap::GetState(aState); *aState &= ~STATE_FOCUSABLE; *aState |= STATE_READONLY; return NS_OK; }
NS_IMETHOD GetName(nsAString& aName) { aName.SetIsVoid(PR_TRUE); return NS_OK; }
NS_IMETHOD GetBounds(PRInt32 *x, PRInt32 *y, PRInt32 *width, PRInt32 *height);
void CacheChildren(PRBool aWalkAnonContent); // Include bullet accessible
protected: