result = aContent->GetParent(*getter_AddRefs(parent));
result = aContent->GetParent(getter_AddRefs(parent));
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)    {      nsCOMPtr<nsIContent> parent;      result = aContent->GetParent(*getter_AddRefs(parent));      if (NS_FAILED(result))        return PR_FALSE;      if (tLimiter != parent) //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;}