more tweaks for line boundaries. previous

This commit is contained in:
mjudge%netscape.com 1999-09-22 07:26:37 +00:00
Родитель 65774de94e
Коммит c6fd49197c
2 изменённых файлов: 18 добавлений и 4 удалений

Просмотреть файл

@ -2186,8 +2186,15 @@ nsFrame::PeekOffset(nsPeekOffsetStruct *aPos)
aPos->mPreferLeft = (PRBool)!(aPos->mPreferLeft);//drift to other side
aPos->mAmount = eSelectNoAmount;
}
else if (aPos->mEatingWS)//done finding what we wanted
return NS_OK;
else{
if (aPos->mEatingWS)//done finding what we wanted
return NS_OK;
if (aPos->mDirection == eDirNext)
{
aPos->mPreferLeft = (PRBool)!(aPos->mPreferLeft);//drift to other side
aPos->mAmount = eSelectNoAmount;
}
}
}
nsCOMPtr<nsIBidirectionalEnumerator> frameTraversal;

Просмотреть файл

@ -2186,8 +2186,15 @@ nsFrame::PeekOffset(nsPeekOffsetStruct *aPos)
aPos->mPreferLeft = (PRBool)!(aPos->mPreferLeft);//drift to other side
aPos->mAmount = eSelectNoAmount;
}
else if (aPos->mEatingWS)//done finding what we wanted
return NS_OK;
else{
if (aPos->mEatingWS)//done finding what we wanted
return NS_OK;
if (aPos->mDirection == eDirNext)
{
aPos->mPreferLeft = (PRBool)!(aPos->mPreferLeft);//drift to other side
aPos->mAmount = eSelectNoAmount;
}
}
}
nsCOMPtr<nsIBidirectionalEnumerator> frameTraversal;