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

This commit is contained in:
uriber%gmail.com 2006-12-12 18:12:46 +00:00
Родитель 37916a14c9
Коммит 298c1e0c98
1 изменённых файлов: 1 добавлений и 10 удалений

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

@ -4496,16 +4496,7 @@ PRBool
nsTextFrame::PeekOffsetNoAmount(PRBool aForward, PRInt32* aOffset)
{
NS_ASSERTION (aOffset && *aOffset <= mContentLength, "aOffset out of range");
nsAutoTextBuffer paintBuffer;
nsAutoIndexBuffer indexBuffer;
nsresult rv = indexBuffer.GrowTo(mContentLength + 1);
if (NS_FAILED(rv)) {
return PR_FALSE;
}
PRInt32 textLength;
nsTextTransformer tx(GetPresContext());
PrepareUnicodeText(tx, &indexBuffer, &paintBuffer, &textLength);
return (textLength > 0);
return (!IsEmpty());
}
PRBool