зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
97f44cadbf
Коммит
3c3be786ad
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче