if (!aAnchorNode || !mAnchorFocusRange) return NS_ERROR_NULL_POINTER;
if (!aAnchorNode) return NS_ERROR_NULL_POINTER; *aAnchorNode = nsnull; if(!mAnchorFocusRange) return NS_OK;
nsDOMSelection::GetAnchorNode(nsIDOMNode** aAnchorNode){	if (!aAnchorNode || !mAnchorFocusRange)		return NS_ERROR_NULL_POINTER;  nsresult result;  if (GetDirection() == eDirNext){    result = mAnchorFocusRange->GetStartContainer(aAnchorNode);  }  else{    result = mAnchorFocusRange->GetEndContainer(aAnchorNode);  }	return result;}