*_retval = new nsHTMLSelectOptionAccessible(this, first, mPresShell); if ( ! *_retval ) return NS_ERROR_FAILURE; NS_ADDREF(*_retval); return NS_OK;
nsCOMPtr<nsIAccessibilityService> accService(do_GetService("@mozilla.org/accessibilityService;1")); nsresult rv = accService->GetAccessibleInWeakShell(first, mWeakShell, aAccFirstChild); mFirstChild = *aAccFirstChild; return rv;
NS_IMETHODIMP nsHTMLSelectListAccessible::GetAccFirstChild(nsIAccessible **_retval){  nsCOMPtr<nsIDOMNode> first;  mDOMNode->GetFirstChild(getter_AddRefs(first));  *_retval = new nsHTMLSelectOptionAccessible(this, first, mPresShell);  if ( ! *_retval )    return NS_ERROR_FAILURE;  NS_ADDREF(*_retval);  return NS_OK;}