return NS_ERROR_NOT_IMPLEMENTED;
if (!mRangeArray) return NS_ERROR_FAILURE;  PRInt32 i; for (i = 0; i < mRangeArray->Count(); i++) { nsCOMPtr<nsIDOMRange> range (mRangeArray->ElementAt(i));  nsCOMPtr<nsIDOMNode> endNode; PRInt32 endOffset; nsCOMPtr<nsIDOMNode> startNode; PRInt32 startOffset; range->GetEndParent(getter_AddRefs(endNode)); range->GetEndOffset(&endOffset); range->GetStartParent(getter_AddRefs(startNode)); range->GetStartOffset(&startOffset); nsresult res;  if ((GetFocusNode() == endNode) && (GetFocusOffset() == endOffset)) { res = range->SetEnd(aParentNode, aOffset); if (res == NS_ERROR_ILLEGAL_VALUE) { res = range->SetEnd(startNode, startOffset); if (NS_SUCCEEDED(res)) res = range->SetStart(aParentNode, aOffset); } if (NS_SUCCEEDED(res)) setFocus(aParentNode, aOffset);  return res; }  if ((GetFocusNode() == startNode) && (GetFocusOffset() == startOffset)) { res = range->SetStart(aParentNode, aOffset); if (res == NS_ERROR_ILLEGAL_VALUE) { res = range->SetStart(endNode, endOffset); if (NS_SUCCEEDED(res)) res = range->SetEnd(aParentNode, aOffset); } if (NS_SUCCEEDED(res)) setFocus(aParentNode, aOffset); return res; } }   #ifdef DEBUG printf("nsRangeList::Extend: focus not contained in any ranges\n"); #endif return NS_ERROR_UNEXPECTED;
nsRangeList::Extend(nsIDOMNode* aParentNode, PRInt32 aOffset){  return NS_ERROR_NOT_IMPLEMENTED;}