nsTextFrame::HandleMultiplePress(nsPresContext* aPresContext,
nsTextFrame::HandleMultiplePress(nsIPresContext* aPresContext,
nsTextFrame::HandleMultiplePress(nsPresContext* aPresContext,                                  nsGUIEvent*     aEvent,                                 nsEventStatus*  aEventStatus){  if (DisplaySelection(aPresContext) == nsISelectionController::SELECTION_OFF) {    return NS_OK;  }  nsMouseEvent *me = (nsMouseEvent *)aEvent;  if (!me) return NS_OK;  // Triple- and greater click counts are handled by nsFrame.  if (me->clickCount > 2)    return nsFrame::HandleMultiplePress(aPresContext, aEvent, aEventStatus);  // Double-click: word selection, handled here:  PRInt32 startPos = 0;  PRInt32 contentOffsetEnd = 0;  nsCOMPtr<nsIContent> newContent;  nsPoint pt = nsLayoutUtils::GetEventCoordinatesRelativeTo(aEvent, this);  nsresult rv = GetPosition(aPresContext, pt,                            getter_AddRefs(newContent), startPos,                            contentOffsetEnd);  if (NS_FAILED(rv))    return rv;  return PeekBackwardAndForward(eSelectWord, eSelectWord, startPos,                                aPresContext, PR_FALSE);}