mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 423570 - Combo boxes should not have read-only state, patch=aaronlev, r=marco.zehe, a=beltzner
This commit is contained in:
parent
eb1ae42993
commit
9526f15ab9
@ -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;
|
||||
|
@ -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 |
|
||||
|
Loading…
Reference in New Issue
Block a user