mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1067788 - Part 5: Fix for parts of test_bug496275.html. r=smontagu
This commit is contained in:
parent
2adcb03176
commit
2b988bd872
@ -1018,8 +1018,13 @@ nsFrameSelection::MoveCaret(nsDirection aDirection,
|
|||||||
switch (aAmount) {
|
switch (aAmount) {
|
||||||
case eSelectBeginLine:
|
case eSelectBeginLine:
|
||||||
case eSelectEndLine:
|
case eSelectEndLine:
|
||||||
// set the caret Bidi level to the paragraph embedding level
|
// In Bidi contexts, PeekOffset calculates pos.mContentOffset
|
||||||
SetCaretBidiLevel(NS_GET_BASE_LEVEL(theFrame));
|
// differently depending on whether the movement is visual or logical.
|
||||||
|
// For visual movement, pos.mContentOffset depends on the direction-
|
||||||
|
// ality of the first/last frame on the line (theFrame), and the caret
|
||||||
|
// directionality must correspond.
|
||||||
|
SetCaretBidiLevel(visualMovement ? NS_GET_EMBEDDING_LEVEL(theFrame) :
|
||||||
|
NS_GET_BASE_LEVEL(theFrame));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user