Bug 1067788 - Part 2: Fixes to caret positioning in bidi text. r=smontagu

This commit is contained in:
Ted Clancy 2015-05-28 08:05:25 -04:00
parent 2af7e21684
commit e6d355417e

View File

@ -675,7 +675,7 @@ nsCaret::GetCaretFrameForNodeOffset(nsFrameSelection* aFrameSelection,
// ------------------
// NS_STYLE_DIRECTION_LTR : LTR or Default
// NS_STYLE_DIRECTION_RTL
if (IsBidiUI())
if (theFrame->PresContext()->BidiEnabled())
{
// If there has been a reflow, take the caret Bidi level to be the level of the current frame
if (aBidiLevel & BIDI_LEVEL_UNDEFINED)