зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
44f5311284
Коммит
64bf6b3953
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче