nsCOMPtr<nsIContent> passedContent; passedContent = do_QueryInterface(aDomNode); if (!passedContent)
if (!aFrameSel || !aContent) return PR_FALSE; if (aFrameSel) { nsresult result; nsCOMPtr<nsIContent> tLimiter; result = aFrameSel->GetLimiter(getter_AddRefs(tLimiter)); if (NS_FAILED(result))
IsValidSelectionPoint(nsSelection *aFrameSel, nsIDOMNode *aDomNode){    nsCOMPtr<nsIContent> passedContent;    passedContent = do_QueryInterface(aDomNode);    if (!passedContent)      return PR_FALSE;    return IsValidSelectionPoint(aFrameSel,passedContent);}