mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Bug 298968. List items, tbody, thead and tfoot should be nameless. r=parente, sr=neil, a=mkaply
This commit is contained in:
parent
372e50a09b
commit
6ff0f9e270
@ -145,7 +145,7 @@ NS_IMETHODIMP nsAccessible::GetName(nsAString& aName)
|
|||||||
return NS_ERROR_FAILURE; // Node shut down
|
return NS_ERROR_FAILURE; // Node shut down
|
||||||
}
|
}
|
||||||
|
|
||||||
PRBool canAggregateName = !mRoleMapEntry ||
|
PRBool canAggregateName = mRoleMapEntry &&
|
||||||
mRoleMapEntry->nameRule == eNameOkFromChildren;
|
mRoleMapEntry->nameRule == eNameOkFromChildren;
|
||||||
|
|
||||||
if (content->IsContentOfType(nsIContent::eHTML)) {
|
if (content->IsContentOfType(nsIContent::eHTML)) {
|
||||||
|
@ -126,6 +126,7 @@ public:
|
|||||||
NS_IMETHOD Shutdown() { nsresult rv = nsAccessibleWrap::Shutdown(); mBulletAccessible = nsnull; return rv; }
|
NS_IMETHOD Shutdown() { nsresult rv = nsAccessibleWrap::Shutdown(); mBulletAccessible = nsnull; return rv; }
|
||||||
NS_IMETHOD GetRole(PRUint32 *aRole) { *aRole = ROLE_LISTITEM; return NS_OK; }
|
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 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);
|
NS_IMETHOD GetBounds(PRInt32 *x, PRInt32 *y, PRInt32 *width, PRInt32 *height);
|
||||||
void CacheChildren(PRBool aWalkAnonContent); // Include bullet accessible
|
void CacheChildren(PRBool aWalkAnonContent); // Include bullet accessible
|
||||||
protected:
|
protected:
|
||||||
|
Loading…
Reference in New Issue
Block a user