else { nsCOMPtr<nsIDOMWindow> domWindow = do_QueryInterface(mCurrentNode); if (domWindow) return domWindow->GetControllers(aResult); }
nsCOMPtr<nsIDOMNSHTMLTextAreaElement> htmlTextArea = do_QueryInterface(mCurrentNode); if (htmlTextArea) return htmlTextArea->GetControllers(aResult);   nsCOMPtr<nsIDOMWindow> domWindow = do_QueryInterface(mCurrentNode); if (domWindow) return domWindow->GetControllers(aResult);
XULCommandDispatcherImpl::GetControllers(nsIControllers** aResult){  if (mCurrentNode) {    nsCOMPtr<nsIDOMXULElement> xulElement = do_QueryInterface(mCurrentNode);    if (xulElement)      return xulElement->GetControllers(aResult);    else {      nsCOMPtr<nsIDOMWindow> domWindow = do_QueryInterface(mCurrentNode);      if (domWindow)        return domWindow->GetControllers(aResult);    }  }  *aResult = nsnull;  return NS_OK;}