Bug 423570 - Combo boxes should not have read-only state, patch=aaronlev, r=marco.zehe, a=beltzner

This commit is contained in:
surkov.alexander@gmail.com 2008-03-19 18:08:26 -07:00
parent eb1ae42993
commit 9526f15ab9
2 changed files with 0 additions and 8 deletions

View File

@ -1070,7 +1070,6 @@ NS_IMETHODIMP nsHTMLComboboxAccessible::Shutdown()
/**
* As a nsHTMLComboboxAccessible we can have the following states:
* STATE_FOCUSED
* STATE_READONLY
* STATE_FOCUSABLE
* STATE_HASPOPUP
* STATE_EXPANDED
@ -1100,7 +1099,6 @@ nsHTMLComboboxAccessible::GetState(PRUint32 *aState, PRUint32 *aExtraState)
}
*aState |= nsIAccessibleStates::STATE_HASPOPUP |
nsIAccessibleStates::STATE_READONLY |
nsIAccessibleStates::STATE_FOCUSABLE;
return NS_OK;

View File

@ -1031,7 +1031,6 @@ NS_IMETHODIMP nsXULComboboxAccessible::GetRole(PRUint32 *aRole)
/**
* As a nsComboboxAccessible we can have the following states:
* STATE_FOCUSED
* STATE_READONLY
* STATE_FOCUSABLE
* STATE_HASPOPUP
* STATE_EXPANDED
@ -1057,11 +1056,6 @@ nsXULComboboxAccessible::GetState(PRUint32 *aState, PRUint32 *aExtraState)
else {
*aState |= nsIAccessibleStates::STATE_COLLAPSED;
}
PRBool isEditable;
menuList->GetEditable(&isEditable);
if (!isEditable) {
*aState |= nsIAccessibleStates::STATE_READONLY;
}
}
*aState |= nsIAccessibleStates::STATE_HASPOPUP |