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

git-svn-id: svn://10.0.0.236/trunk@193983 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
uriber%gmail.com
2006-04-10 06:49:50 +00:00
parent b29bf4fc4a
commit 890a674685

View File

@@ -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;