Bug 314519: Caret skips blank lines using right-arrow key in some cases of preformatted text. r+sr=roc

This commit is contained in:
uriber%gmail.com 2006-04-10 06:49:50 +00:00
Родитель 72e6990032
Коммит 79453fd0ba
1 изменённых файлов: 1 добавлений и 9 удалений

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

@ -4599,15 +4599,7 @@ nsTextFrame::PeekOffset(nsPresContext* aPresContext, nsPeekOffsetStruct *aPos)
switch (aPos->mAmount){
case eSelectNoAmount:
{
// Transform text from content into renderable form
nsIDocument* doc = mContent->GetDocument();
if (!doc) {
return NS_OK;
}
nsTextTransformer tx(aPresContext);
PrepareUnicodeText(tx, &indexBuffer, &paintBuffer, &textLength);
if (textLength)//if no renderable length, you can't park here.
if (!IsEmpty()) //if no renderable length, you can't park here.
{
aPos->mContentOffset = aPos->mStartOffset;
result = NS_OK;