Logo Search packages:      
Sourcecode: xulrunner version File versions  Download package

already_AddRefed< nsIAccessible > nsXULListitemAccessible::GetListAccessible (  )  [protected]

Inherit the ISupports impl from nsAccessible, we handle nsIAccessibleSelectable

Definition at line 849 of file nsXULSelectAccessible.cpp.

{
  if (IsDefunct())
    return nsnull;
  
  nsCOMPtr<nsIDOMXULSelectControlItemElement> listItem =
    do_QueryInterface(mDOMNode);
  if (!listItem)
    return nsnull;

  nsCOMPtr<nsIDOMXULSelectControlElement> list;
  listItem->GetControl(getter_AddRefs(list));

  nsCOMPtr<nsIDOMNode> listNode(do_QueryInterface(list));
  if (!listNode)
    return nsnull;

  nsIAccessible *listAcc = nsnull;
  GetAccService()->GetAccessibleInWeakShell(listNode, mWeakShell, &listAcc);
  return listAcc;
}


Generated by  Doxygen 1.6.0   Back to index