From 79453fd0ba05aa597d02370e960703a050276e44 Mon Sep 17 00:00:00 2001 From: "uriber%gmail.com" Date: Mon, 10 Apr 2006 06:49:50 +0000 Subject: [PATCH] Bug 314519: Caret skips blank lines using right-arrow key in some cases of preformatted text. r+sr=roc --- layout/generic/nsTextFrame.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/layout/generic/nsTextFrame.cpp b/layout/generic/nsTextFrame.cpp index 83e747e658ad..7c0e38ec77cd 100644 --- a/layout/generic/nsTextFrame.cpp +++ b/layout/generic/nsTextFrame.cpp @@ -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;