зеркало из https://github.com/mozilla/pjs.git
Bug 417122 - More prbool misuse in accessibility, patch=Taras Glek, r=aaronlev, a=mtschrep
This commit is contained in:
Родитель
07e69c122b
Коммит
7f2d3d778b
|
@ -259,7 +259,7 @@ nsAccUtils::SetAccAttrsForXULContainerItem(nsIDOMNode *aNode,
|
|||
PRBool
|
||||
nsAccUtils::HasListener(nsIContent *aContent, const nsAString& aEventType)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(aContent);
|
||||
NS_ENSURE_TRUE(aContent, PR_FALSE);
|
||||
nsCOMPtr<nsIEventListenerManager> listenerManager;
|
||||
aContent->GetListenerManager(PR_FALSE, getter_AddRefs(listenerManager));
|
||||
|
||||
|
@ -319,8 +319,8 @@ PRBool
|
|||
nsAccUtils::IsAncestorOf(nsIDOMNode *aPossibleAncestorNode,
|
||||
nsIDOMNode *aPossibleDescendantNode)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(aPossibleAncestorNode);
|
||||
NS_ENSURE_ARG_POINTER(aPossibleDescendantNode);
|
||||
NS_ENSURE_TRUE(aPossibleAncestorNode, PR_FALSE);
|
||||
NS_ENSURE_TRUE(aPossibleDescendantNode, PR_FALSE);
|
||||
|
||||
nsCOMPtr<nsIDOMNode> loopNode = aPossibleDescendantNode;
|
||||
nsCOMPtr<nsIDOMNode> parentNode;
|
||||
|
|
|
@ -921,7 +921,7 @@ PRBool nsHTMLTableAccessible::HasDescendant(char *aTagName, PRBool aAllowEmpty)
|
|||
nsAutoString tagName;
|
||||
tagName.AssignWithConversion(aTagName);
|
||||
tableElt->GetElementsByTagName(tagName, getter_AddRefs(nodeList));
|
||||
NS_ENSURE_TRUE(nodeList, NS_ERROR_FAILURE);
|
||||
NS_ENSURE_TRUE(nodeList, PR_FALSE);
|
||||
PRUint32 length;
|
||||
nodeList->GetLength(&length);
|
||||
|
||||
|
|
|
@ -878,7 +878,7 @@ nsXULTreeitemAccessible::IsDefunct()
|
|||
PRBool nsXULTreeitemAccessible::IsExpandable()
|
||||
{
|
||||
if (IsDefunct())
|
||||
return NS_ERROR_FAILURE;
|
||||
return PR_FALSE;
|
||||
|
||||
PRBool isContainer;
|
||||
mTreeView->IsContainer(mRow, &isContainer);
|
||||
|
|
Загрузка…
Ссылка в новой задаче