if (colorSet && (foreColor != NS_DONT_CHANGE_COLOR)) return foreColor;
if (colorSet && (foreColor != NS_DONT_CHANGE_COLOR)) { if (mSelectionPseudoStyle) return mSelectionPseudoFGcolor; else return foreColor; }
DrawSelectionIterator::CurrentForeGroundColor(){	nscolor foreColor;	PRBool colorSet = PR_FALSE;    if (!mTypes)  {      if (mCurrentIdx == (PRUint32)mDetails->mStart)      {   			foreColor = mOldStyle.mSelectionTextColor;   			colorSet = PR_TRUE;   		}  }  else if (mTypes[mCurrentIdx] | nsISelectionController::SELECTION_NORMAL)//Find color based on mTypes[mCurrentIdx];  {    foreColor = mOldStyle.mSelectionTextColor;   	colorSet = PR_TRUE;  }	if (colorSet && (foreColor != NS_DONT_CHANGE_COLOR))			return foreColor;  return mOldStyle.mColor->mColor;}