fix for 82151 -- Right arrow key at end of a TEXTAREA goes to the beginning

checking in for mjudge
r=cmanske, anthonyd
sr=kin
a=asa
This commit is contained in:
anthonyd%netscape.com 2001-06-26 20:47:46 +00:00
Родитель 44f5311284
Коммит 64bf6b3953
2 изменённых файлов: 10 добавлений и 0 удалений

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

@ -3729,7 +3729,11 @@ nsFrame::GetFrameFromDirection(nsIPresContext* aPresContext, nsPeekOffsetStruct
#ifndef IBMBIDI
nsIFrame *newFrame = (nsIFrame *)isupports;
#else
newFrame = (nsIFrame *)isupports;
nsFrameState state;
newFrame->GetFrameState(&state);
if (state & NS_FRAME_IS_BIDI) {
newFrame->GetRect(testRect);
if (testRect.IsEmpty()) { // this must be a non-renderable frame creatd at the end of the line by Bidi reordering
lineJump = PR_TRUE;
@ -3797,6 +3801,7 @@ nsFrame::GetFrameFromDirection(nsIPresContext* aPresContext, nsPeekOffsetStruct
newFrame = firstFrame;
else
newFrame = lastFrame;
}
}
}
#endif // IBMBIDI

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

@ -3729,7 +3729,11 @@ nsFrame::GetFrameFromDirection(nsIPresContext* aPresContext, nsPeekOffsetStruct
#ifndef IBMBIDI
nsIFrame *newFrame = (nsIFrame *)isupports;
#else
newFrame = (nsIFrame *)isupports;
nsFrameState state;
newFrame->GetFrameState(&state);
if (state & NS_FRAME_IS_BIDI) {
newFrame->GetRect(testRect);
if (testRect.IsEmpty()) { // this must be a non-renderable frame creatd at the end of the line by Bidi reordering
lineJump = PR_TRUE;
@ -3797,6 +3801,7 @@ nsFrame::GetFrameFromDirection(nsIPresContext* aPresContext, nsPeekOffsetStruct
newFrame = firstFrame;
else
newFrame = lastFrame;
}
}
}
#endif // IBMBIDI