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

git-svn-id: svn://10.0.0.236/trunk@248237 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
surkov.alexander%gmail.com
2008-03-20 01:08:27 +00:00
parent c2ac0d4210
commit eccaf4ccfb
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 |