nsCOMPtr<nsIAtom> tagName; child->GetTag(getter_AddRefs(tagName)); if (tagName == nsHTMLAtoms::br)
if (child->Tag() == nsHTMLAtoms::br)
nsTextInputSelectionImpl::CompleteMove(PRBool aForward, PRBool aExtend){  // grab the parent / root DIV for this text widget  nsresult result;  nsCOMPtr<nsIContent> parentDIV;  result = GetLimiter(getter_AddRefs(parentDIV));  if (NS_FAILED(result))    return result;  if (!parentDIV)    return NS_ERROR_UNEXPECTED;  // make the caret be either at the very beginning (0) or the very end  PRInt32 offset = 0;  HINT hint = HINTLEFT;  if (aForward)  {    offset = parentDIV->GetChildCount();    // Prevent the caret from being placed after the last    // BR node in the content tree!    if (offset > 0)    {      nsIContent *child = parentDIV->GetChildAt(offset - 1);      nsCOMPtr<nsIAtom> tagName;      child->GetTag(getter_AddRefs(tagName));      if (tagName == nsHTMLAtoms::br)      {        --offset;        hint = HINTRIGHT; // for Bug 106855      }    }  }  result = mFrameSelection->HandleClick(parentDIV, offset, offset, aExtend, PR_FALSE, hint);  // if we got this far, attempt to scroll no matter what the above result is  return CompleteScroll(aForward);}