nsresult result;  if (!mAutoScrollTimer) { result = NS_NewAutoScrollTimer(&mAutoScrollTimer);  if (NS_FAILED(result)) return result;  if (!mAutoScrollTimer) return NS_ERROR_OUT_OF_MEMORY;  result = mAutoScrollTimer->Init(mFrameSelection, this);  if (NS_FAILED(result)) return result; }  result = mAutoScrollTimer->SetDelay(aDelay);  if (NS_FAILED(result)) return result;  return DoAutoScroll(aPresContext, aFrame, aPoint);
PRInt8 index = GetIndexFromSelectionType(nsISelectionController::SELECTION_NORMAL); return mDomSelections[index]->StartAutoScrollTimer(aPresContext, aFrame, aPoint, aDelay);
nsDOMSelection::StartAutoScrollTimer(nsIPresContext *aPresContext, nsIFrame *aFrame, nsPoint& aPoint, PRUint32 aDelay){  nsresult result;  if (!mAutoScrollTimer)  {    result = NS_NewAutoScrollTimer(&mAutoScrollTimer);    if (NS_FAILED(result))      return result;    if (!mAutoScrollTimer)      return NS_ERROR_OUT_OF_MEMORY;    result = mAutoScrollTimer->Init(mFrameSelection, this);    if (NS_FAILED(result))      return result;  }  result = mAutoScrollTimer->SetDelay(aDelay);  if (NS_FAILED(result))    return result;  return DoAutoScroll(aPresContext, aFrame, aPoint);}