Bug 233348: BiDi marker is hidden when the caret is at the edge of a textarea. Patch by Haamed Gheibi <gheibi@gmail.com>. r=mrbkap sr=roc

This commit is contained in:
uriber%gmail.com 2006-11-01 18:31:42 +00:00
Родитель 97f44cadbf
Коммит 3c3be786ad
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -1052,6 +1052,11 @@ nsresult nsCaret::UpdateCaretRects(nsIFrame* aFrame, PRInt32 aFrameOffset)
mCaretRect += framePos;
mCaretRect.width = mCaretTwipsWidth;
// on RTL frames the right edge of mCaretRect must be equal to framePos
const nsStyleVisibility* vis = aFrame->GetStyleVisibility();
if (NS_STYLE_DIRECTION_RTL == vis->mDirection)
mCaretRect.x -= mCaretRect.width;
return UpdateHookRect(presContext);
}