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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user