зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
37916a14c9
Коммит
298c1e0c98
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче