зеркало из https://github.com/mozilla/gecko-dev.git
more tweaks for line boundaries. previous
This commit is contained in:
Родитель
65774de94e
Коммит
c6fd49197c
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче