if (NS_OK != nativeThis->ClearCellSelection()) { return JS_FALSE;
result = nativeThis->ClearCellSelection(); if (NS_FAILED(result)) { return nsJSUtils::nsReportError(cx, result);
XULTreeElementClearCellSelection(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval){  nsIDOMXULTreeElement *nativeThis = (nsIDOMXULTreeElement*)nsJSUtils::nsGetNativeThis(cx, obj);  *rval = JSVAL_NULL;  nsIScriptContext *scriptCX = (nsIScriptContext *)JS_GetContextPrivate(cx);  nsCOMPtr<nsIScriptSecurityManager> secMan;  if (NS_OK != scriptCX->GetSecurityManager(getter_AddRefs(secMan))) {    return JS_FALSE;  }  {    PRBool ok;    secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.clearcellselection",PR_FALSE , &ok);    if (!ok) {      //Need to throw error here      return JS_FALSE;    }  }  // If there's no private data, this must be the prototype, so ignore  if (nsnull == nativeThis) {    return JS_TRUE;  }  {    if (NS_OK != nativeThis->ClearCellSelection()) {      return JS_FALSE;    }    *rval = JSVAL_VOID;  }  return JS_TRUE;}