if (!aFrameSel || !aContent) return PR_FALSE; if (aFrameSel) { nsresult result; nsCOMPtr<nsIContent> tLimiter; result = aFrameSel->GetLimiter(getter_AddRefs(tLimiter)); if (NS_FAILED(result))
nsCOMPtr<nsIContent> passedContent; passedContent = do_QueryInterface(aDomNode); if (!passedContent)
IsValidSelectionPoint(nsSelection *aFrameSel, nsIContent *aContent){  if (!aFrameSel || !aContent)    return PR_FALSE;  if (aFrameSel)  {    nsresult result;    nsCOMPtr<nsIContent> tLimiter;    result = aFrameSel->GetLimiter(getter_AddRefs(tLimiter));    if (NS_FAILED(result))      return PR_FALSE;    if (tLimiter && tLimiter != aContent)    {      if (tLimiter != aContent->GetParent()) //if newfocus == the limiter. thats ok. but if not there and not parent bad        return PR_FALSE; //not in the right content. tLimiter said so    }  }  return PR_TRUE;}